Output to text file
-
I am new to XML. I have tried to search for an answer to this question but haven't found any good answers. I have created an XSD that describes a programming language (in this case C). I have created a simple XML file that describes a simplistic hello world type program. I have created a XSLT file that will transform that XML file into a c program. What I would like to do is transform the XML and save the output a text or more specifically my .c file. Then I should be able to create another XSLT that would generate my .h file. <xsl:output method="text" /> in my XSLT file. When I load the XML file in IExplorer, the output is text on the screen, and I can copy and paste the text into a text file, but when I save as in IE it saves the original untransformed XML. Is there a way to save the transformed output? Do I need to transform it outside of a browser somehow?
-
I am new to XML. I have tried to search for an answer to this question but haven't found any good answers. I have created an XSD that describes a programming language (in this case C). I have created a simple XML file that describes a simplistic hello world type program. I have created a XSLT file that will transform that XML file into a c program. What I would like to do is transform the XML and save the output a text or more specifically my .c file. Then I should be able to create another XSLT that would generate my .h file. <xsl:output method="text" /> in my XSLT file. When I load the XML file in IExplorer, the output is text on the screen, and I can copy and paste the text into a text file, but when I save as in IE it saves the original untransformed XML. Is there a way to save the transformed output? Do I need to transform it outside of a browser somehow?
shortdog wrote:
Do I need to transform it outside of a browser somehow?
Copy/Paste from the browser might work. Otherwise you can do a transform to a file using a XSLT utility or tool, or you might build one yourself. In most languages that have access to an XML library it takes about 5 lines of code to build a XSLT command line program.
-
shortdog wrote:
Do I need to transform it outside of a browser somehow?
Copy/Paste from the browser might work. Otherwise you can do a transform to a file using a XSLT utility or tool, or you might build one yourself. In most languages that have access to an XML library it takes about 5 lines of code to build a XSLT command line program.