A spelling mistake on the contents of the attribute is what is wrong.
You mean a missing double quotes in "tbody_cell" value. Well its there but I
copy pasted incorrectly.
Apology for misunderstanding.
2008/6/5 Pankaj Chaturvedi <pankaj(_dot_)chaturvedi(_at_)idsil(_dot_)com>:
Hi,
Can somebody let me know what's wrong with the below code:
<xsl:value-of
select="count(contains[.//entry/@aid5:cellstyle='tbody_cell'])"/>
I've markup:
<table>
<thead>
<entry aid5:cellstyle=tbody_cell">
<para>xxx</para>
</entry>
<entry aid5:cellstyle=tbody_cell">
<para>xxx</para>
</entry><entry aid5:cellstyle=tbody_cell_l"> <para>xxx</para>
</entry><entry aid5:cellstyle=tbody_cell_l"> <para>xxx</para> </entry>
</thead> </table>
All I am trying to do is while in <table> trying to count the nos
entry whose @aid5:cellstyle contains or starts-with tbody_cell.
Believe me I've used these functions lots of time mostly with nodes,
but nothings seems to be working with attributes. May be I never
tested "attribute values" with these functions.
Any clue will be highly appreciated.
Best,
Pankaj Chaturvedi
======================================================================
======
================
Confidentiality Notice:" This message and any attachment(s) contained
here are information that is confidential, proprietary to IDS Infotech
Ltd. and its customers.
Contents may be privileged or otherwise protected by law. The
information is solely intended for the individual or the entity it is
addressed to. If you are not the intended recipient of this message,
you are not authorized to read, forward, print, retain, copy or
disseminate this message or any part of it. If you have received this
e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer."
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--