normalize.xsl 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!-- This file is part of the DITA Open Toolkit project hosted on
  3. Sourceforge.net. See the accompanying license.txt file for
  4. applicable licenses.-->
  5. <!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
  6. <xsl:stylesheet version="1.0"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  8. <!-- normalize.xsl
  9. | This stylesheet is the standard "identity transform" from the
  10. | XSLT Recommendation without indentation.
  11. | Note: the output from the DITA identity transforms is dtd-neutral,
  12. | therefore the original doctype cannot be copied through. If you
  13. | use identity transforms from a script, you can add logic to the
  14. | script to re-insert the desired doctype for use by editors, browers, etc..
  15. +-->
  16. <xsl:output method="xml" indent="no" />
  17. <xsl:template match="*">
  18. <xsl:copy>
  19. <xsl:copy-of select="@*" />
  20. <xsl:apply-templates />
  21. </xsl:copy>
  22. </xsl:template>
  23. <xsl:template match="comment()|processing-instruction()">
  24. <xsl:copy />
  25. </xsl:template>
  26. </xsl:stylesheet>