Skip to content

Instantly share code, notes, and snippets.

@metafeather
Created October 6, 2009 12:32
Show Gist options
  • Save metafeather/202973 to your computer and use it in GitHub Desktop.
Save metafeather/202973 to your computer and use it in GitHub Desktop.
<!--
A quick code snippet to include the right XHTML DTD in your XSL generated output. This took me a bit of reseach to find out:
-->
<xsl:output
method="xml"
encoding="utf-8"
omit-xml-declaration="yes"
indent="no"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />
<!--
Another tidbit to exclude unwanted namespace declarations from the output.
-->
<xsl:output
exclude-result-prefixes="media" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment