W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2001

Re: XSL FOR-EACH

From: Loic L'Heveder <Loic.L'Heveder@cern.ch>
Date: Fri, 9 Nov 2001 11:08:33 +0100
Message-ID: <002201c16906$7d28a320$35c28a89@cern.ch>
To: "Maurice Ray" <mray@absolute.ch>, <www-xsl-fo@w3.org>
Hi Maurice,
I would see the data like this

<component>
    <type></type>
    <name></name>
    <price></name>
</component>


with type containing cpu or ram or whatever

hence you could do

...
<xsl:apply-templates select="component[type='cpu']"/>
...

<xsl:template match="component">
    here your layout with <xsl:value-of select="name"/> and <xsl:value-of
select="price"/>
</xsl:template>


hope It may help.

best regards
Loic
Received on Friday, 9 November 2001 05:09:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT