No XML Header?
-
Hello! I'm trying to use an XSL stylesheet to transform an XML document into a CSV file. This works quite fine, except one problem: XSL outputs an XML header:
<?xml version="1.0" encoding="utf-8"?> "Item 1","Sub-Item 1.1","SubItem 1.2" "Item 2","Sub-Item 2.1","SubItem 2.2" "Item 3","Sub-Item 3.1","SubItem 3.2" "Item 4","Sub-Item 4.1","SubItem 4.2"
Is there any XSL command that prevents the output of the first line? Best regards Dominik
Too many passwords to remember? Try KeePass Password Safe!
-
Hello! I'm trying to use an XSL stylesheet to transform an XML document into a CSV file. This works quite fine, except one problem: XSL outputs an XML header:
<?xml version="1.0" encoding="utf-8"?> "Item 1","Sub-Item 1.1","SubItem 1.2" "Item 2","Sub-Item 2.1","SubItem 2.2" "Item 3","Sub-Item 3.1","SubItem 3.2" "Item 4","Sub-Item 4.1","SubItem 4.2"
Is there any XSL command that prevents the output of the first line? Best regards Dominik
Too many passwords to remember? Try KeePass Password Safe!
XSLT xsl:output Element[^] You're looking for the
omit-xml-declaration
attribute.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
XSLT xsl:output Element[^] You're looking for the
omit-xml-declaration
attribute.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
Exactly what I was looking for, thanks a lot! :)
Too many passwords to remember? Try KeePass Password Safe!