xslt012.xsl 827 B

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