xref: /PHP-7.2/ext/xsl/tests/xslt012.xsl (revision e63a7d89)
1<?xml version="1.0" encoding="iso-8859-1"?>
2<!-- $Id: xslt012.xsl,v 1.1 2004-08-05 13:31:17 tony2001 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:param name="foo1" select="'bar1'"/>
8    <xsl:template match="/">
9    <html>
10    <body>
11        <xsl:value-of select="$foo"/><xsl:text>
12</xsl:text>
13        <xsl:value-of select="$foo1"/><xsl:text>
14</xsl:text>
15        <xsl:apply-templates select="/chapter/para/informaltable/tgroup/tbody/row"/>
16     </body>
17     </html>
18    </xsl:template>
19
20    <xsl:template match="row">
21        <xsl:for-each select="entry">
22            <xsl:value-of select="."/>
23            <xsl:text> </xsl:text>
24        </xsl:for-each>
25       <br/> <xsl:text>
26</xsl:text>
27
28    </xsl:template>
29</xsl:stylesheet>
30