copy.xslt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This stylesheet originates from the sample code published with the following book:
  4. Author: Sal Mangano
  5. Title: XSLT Cookbook
  6. Publisher: O'Reilly & Associates, Inc.
  7. ISBN 10: 0-596-00372-2
  8. ISBN 13: 9780596003722
  9. http://www.oreilly.com/catalog/xsltckbk
  10. examples: http://examples.oreilly.com/xsltckbk/
  11. Conditions on re-using the sample code:
  12. "
  13. Unless there is a specific prohibition on a book's catalog page,
  14. we put programming examples online to be used.
  15. The source of the code should be noted in any documentation
  16. and as a comment in the program itself.
  17. The attribution should include author, title, publisher, and ISBN.
  18. For further information, see our
  19. Policy on Re-Use of Code Examples: http://www.oreilly.com/pub/a/oreilly/ask_tim/2001/codepolicy.html.
  20. "
  21. -->
  22. <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  23. <xsl:template match="/ | node() | @* | comment() | processing-instruction()">
  24. <xsl:copy>
  25. <xsl:apply-templates select="@* | node()"/>
  26. </xsl:copy>
  27. </xsl:template>
  28. </xsl:stylesheet>