Re: XSL FOR-EACH

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 UTC