This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
"for-each" doubt
- To: <xsl-list at mulberrytech dot com>
- Subject: "for-each" doubt
- From: "Luis Neves" <lneves at netcabo dot pt>
- Date: Tue, 10 Oct 2000 13:52:22 +0100
- Reply-To: xsl-list at mulberrytech dot com
Hello everyone,
This is a newbie doubt, i hope you forgive me.
I have a stylesheet that looks like this:
<TABLE>
<TR>
<TD><xsl:value-of select="//FIELD[@id='1']/@label"/></TD>
<TD><xsl:apply-templates select="//FIELD[@id='1']"/></TD>
</TR>
<TR>
<TD><xsl:value-of select="//FIELD[@id='2']/@label"/></TD>
<TD><xsl:apply-templates select="//FIELD[@id='2']"/></TD>
</TR>
.................
<TR>
<TD><xsl:value-of select="//FIELD[@id='20']/@label"/></TD>
<TD><xsl:apply-templates select="//FIELD[@id='20']"/></TD>
</TR>
And I want to change it into something like this :
<TABLE>
<xsl:for-each select="//FIELD">
<TR>
<TD><xsl:value-of select="XXXXX"/></TD>
<TD><xsl:apply-templates select="YYYYY"/></TD>
</TR>
</xsl:for-each>
</TABLE>
The problem I'm having is that I don't know what to put in the in XXXXXX and
YYYYY.
I wonder if anyone can help me with this?
Thanks,
Luis Neves
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list