xref: /PHP-7.4/ext/xsl/tests/xslt.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: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
16    <xsl:template match="row">
17        <xsl:for-each select="entry">
18            <xsl:value-of select="."/>
19            <xsl:text> </xsl:text>
20        </xsl:for-each>
21       <br/> <xsl:text>
22</xsl:text>
23
24    </xsl:template>
25</xsl:stylesheet>
26