This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xpath problem


<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]