You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

template-simple.xsl 644 B

12345678910111213141516171819
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:template match="echo-template">
  4. <echo message="This is an example of how to use a template to expand" />
  5. <echo message="a single element into a list of tasks to do. In this" />
  6. <echo message="example it is largely a case of echoing an attribute" />
  7. <echo message="ie. msg='{@msg}' and embeddding an ant variable ${{year}}" />
  8. </xsl:template>
  9. <xsl:template match="@*|node()">
  10. <xsl:copy>
  11. <xsl:apply-templates select="@*"/>
  12. <xsl:apply-templates/>
  13. </xsl:copy>
  14. </xsl:template>
  15. </xsl:stylesheet>