xslt.xsl 783 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!-- $Id: xslt.xsl,v 1.2 2003-11-29 13:01:19 chregu 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:template match="/">
  7. <html>
  8. <body>
  9. <xsl:value-of select="$foo"/><xsl:text>
  10. </xsl:text>
  11. <xsl:apply-templates select="/chapter/para/informaltable/tgroup/tbody/row"/>
  12. </body>
  13. </html>
  14. </xsl:template>
  15. <xsl:template match="row">
  16. <xsl:for-each select="entry">
  17. <xsl:value-of select="."/>
  18. <xsl:text> </xsl:text>
  19. </xsl:for-each>
  20. <br/> <xsl:text>
  21. </xsl:text>
  22. </xsl:template>
  23. </xsl:stylesheet>