xslt.xsl 721 B

12345678910111213141516171819202122232425
  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:template match="/">
  6. <html>
  7. <body>
  8. <xsl:value-of select="$foo"/><xsl:text>
  9. </xsl:text>
  10. <xsl:apply-templates select="/chapter/para/informaltable/tgroup/tbody/row"/>
  11. </body>
  12. </html>
  13. </xsl:template>
  14. <xsl:template match="row">
  15. <xsl:for-each select="entry">
  16. <xsl:value-of select="."/>
  17. <xsl:text> </xsl:text>
  18. </xsl:for-each>
  19. <br/> <xsl:text>
  20. </xsl:text>
  21. </xsl:template>
  22. </xsl:stylesheet>