Skip to content

Instantly share code, notes, and snippets.

@booyaa
Created August 12, 2011 14:18
Show Gist options
  • Save booyaa/1142123 to your computer and use it in GitHub Desktop.
Save booyaa/1142123 to your computer and use it in GitHub Desktop.
Removing XML header from XSLT transformation
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- this is useful for xml files like partial html code -->
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
<!-- add the rest of your transformation here... -->
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment