Hi
suppose i have a XML file as below, i want to print
only value where id = name. I want to do this using
XSL, not java program
for example once i read throug all the XML file, i
should get output as 123 and 456
<xml>
<name>abc</name>
<name>xyz</name>
<data>
<id>abc</id>
<value>123</value>
</data>
<data>
<id>xyz</id>
<value>456</value>
</data>
<data>
<id>jkl</id>
<value>998</value>
</data>
</xml>
This is the XSL i have been trying
<xsl:for-each select="/">
<xsl:for-each select="data">
<xsl:if test="name=id " >
********what test condition do i put here, this does
not work
<xsl:value-of select="value" />
</xsl:if>
</xsl:for-each>
</xsl:for-each>
______________________________________________________
Yahoo! for Good
Donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]