|
Subject: [xsl] xpath problem From: "Earl Spencer" <eapencer74@xxxxxxxxxxx> Date: Mon, 06 Aug 2001 19:16:37 +0000 |
<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>
<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())])"/>
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] suprised by <xsl:copy-of , Michael Kay | Thread | RE: [xsl] xpath problem, Michael Kay |
| RE: [xsl] easy XPath question, Sanjay Pandey/Towers | Date | RE: [xsl] easy XPath question, Oleg Tkachenko |
| Month |