A
Aart Nicolai
Hi,
I've a little, maybe stupid question, about XML/XSL.
I grab HTML from another website. I put this HTML code within my XML
file, because it's also well formed it;s not a problem. But I don't know
how I'm able to walk through those tags using XSL.
This is the specific part of the XML:
<WEER>
<TR>
<TD width="25%">Schiphol</TD>
<TD>zwaar bewolkt</TD>
<TD>7.4</TD>
<TD>96</TD>
<TD>OZO</TD>
<TD>4</TD>
<TD>3300</TD>
<TD>1004</TD>
</TR>
</WEER>
I'm now using this peace of XSL, but it's not working very well. I simply
just want to retrieve the contents of the "TD" tag.
<xsl:for-each select="/ROOT/PARENT/OBJECT/WEER/TR/TD">
<xsl:if test="position() = 1"><xsl:value-of
select="/ROOT/PARENT/OBJECT/WEER/TR/TD" /><br /></xsl:if>
</xsl:for-each>
Any suggestions ?
Thanks in advance,
Aart Nicolai
I've a little, maybe stupid question, about XML/XSL.
I grab HTML from another website. I put this HTML code within my XML
file, because it's also well formed it;s not a problem. But I don't know
how I'm able to walk through those tags using XSL.
This is the specific part of the XML:
<WEER>
<TR>
<TD width="25%">Schiphol</TD>
<TD>zwaar bewolkt</TD>
<TD>7.4</TD>
<TD>96</TD>
<TD>OZO</TD>
<TD>4</TD>
<TD>3300</TD>
<TD>1004</TD>
</TR>
</WEER>
I'm now using this peace of XSL, but it's not working very well. I simply
just want to retrieve the contents of the "TD" tag.
<xsl:for-each select="/ROOT/PARENT/OBJECT/WEER/TR/TD">
<xsl:if test="position() = 1"><xsl:value-of
select="/ROOT/PARENT/OBJECT/WEER/TR/TD" /><br /></xsl:if>
</xsl:for-each>
Any suggestions ?
Thanks in advance,
Aart Nicolai