File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / xsl / tests / xslt012.xsl
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Id: xslt012.xsl,v 1.1.1.1 2012/02/21 23:48:05 misho Exp $ -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

    <xsl:output  method="xml" encoding="iso-8859-1" indent="no"/>
    <xsl:param name="foo" select="'bar'"/>
    <xsl:param name="foo1" select="'bar1'"/>
    <xsl:template match="/">
    <html>
    <body>
        <xsl:value-of select="$foo"/><xsl:text>
</xsl:text>
        <xsl:value-of select="$foo1"/><xsl:text>
</xsl:text>
        <xsl:apply-templates select="/chapter/para/informaltable/tgroup/tbody/row"/>
     </body>
     </html>
    </xsl:template>

    <xsl:template match="row">
        <xsl:for-each select="entry">
            <xsl:value-of select="."/>
            <xsl:text> </xsl:text>
        </xsl:for-each>
       <br/> <xsl:text> 
</xsl:text>

    </xsl:template>
</xsl:stylesheet>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>