xref: /PHP-5.5/ext/xsl/tests/xslt.xsl (revision 38b12e7f)
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
5    <xsl:output  method="xml" encoding="iso-8859-1" indent="no"/>
6    <xsl:param name="foo" select="'bar'"/>
7    <xsl:template match="/">
8    <html>
9    <body>
10        <xsl:value-of select="$foo"/><xsl:text>
11</xsl:text>
12        <xsl:apply-templates select="/chapter/para/informaltable/tgroup/tbody/row"/>
13     </body>
14     </html>
15    </xsl:template>
16
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
25    </xsl:template>
26</xsl:stylesheet>
27