xslt012.xsl 894 B

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!-- $Id: xslt012.xsl,v 1.1 2004-08-05 13:31:17 tony2001 Exp $ -->
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
  4. <xsl:output method="xml" encoding="iso-8859-1" indent="no"/>
  5. <xsl:param name="foo" select="'bar'"/>
  6. <xsl:param name="foo1" select="'bar1'"/>
  7. <xsl:template match="/">
  8. <html>
  9. <body>
  10. <xsl:value-of select="$foo"/><xsl:text>
  11. </xsl:text>
  12. <xsl:value-of select="$foo1"/><xsl:text>
  13. </xsl:text>
  14. <xsl:apply-templates select="/chapter/para/informaltable/tgroup/tbody/row"/>
  15. </body>
  16. </html>
  17. </xsl:template>
  18. <xsl:template match="row">
  19. <xsl:for-each select="entry">
  20. <xsl:value-of select="."/>
  21. <xsl:text> </xsl:text>
  22. </xsl:for-each>
  23. <br/> <xsl:text>
  24. </xsl:text>
  25. </xsl:template>
  26. </xsl:stylesheet>