This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xpath problem
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] xpath problem
- From: "Earl Spencer" <eapencer74 at hotmail dot com>
- Date: Mon, 06 Aug 2001 19:16:37 +0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
<a>
<b id="new">
<f>new</f>
<c id="new">
<d id="old">hi</d>
</c>
</b>
<b id="new">
<f>new</f>
<c id="old">
<d id="new">hi</d>
</c>
</b>
<b id="old">
<f>new</f>
<c id="old">
<d >new</d>
</c>
</b>
<b id="old">
<f>old</f>
<c id="old">
<d >new</d>
</c>
</b>
</a>
for this file i used an expression this way
<xsl:for-each select="a">
<xsl:variable name="mcid"><xsl:value-of select="@mcID"/></xsl:variable>
<xsl:value-of select="count(b[contains(new,text())])"/>
this gives me a correct value
where as the below one does not give the correct value
<xsl:value-of select="count(c[contains(new,d)])"/>
what is wrong in my statement
sorry for the ignorance cause i am new to xslt stuff
Thanks
Spencer
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list