xref: /PHP-7.4/ext/xsl/tests/xslt012.xsl (revision 128cd0d0)
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
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
19    <xsl:template match="row">
20        <xsl:for-each select="entry">
21            <xsl:value-of select="."/>
22            <xsl:text> </xsl:text>
23        </xsl:for-each>
24       <br/> <xsl:text>
25</xsl:text>
26
27    </xsl:template>
28</xsl:stylesheet>
29