xsl-list
[Top] [All Lists]

RE: [xsl] Value of attribute starts-with or contains

2008-06-05 04:19:10
 
Well this one is understood, but I don't only need
[(_at_)aid5:cellstyle='tbody_cell'] but also the entries whose @aid5:cellstyle
also starts-with/contains these value.
 
I was finding the difficulties in using these functions.

________________________________

From: balaji(_dot_)mani1(_at_)wipro(_dot_)com 
[mailto:balaji(_dot_)mani1(_at_)wipro(_dot_)com] 
Sent: Thursday, June 05, 2008 1:22 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com; 
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: pankaj(_dot_)chaturvedi(_at_)idsil(_dot_)com
Subject: RE: [xsl] Value of attribute starts-with or contains


you try this one
 
<xsl:apply-templates
select=".//entry[(_at_)aid5:cellstyle='tbody_cell']"/>
 
Regards,
Balaji. M

________________________________

From: Pankaj Chaturvedi [mailto:pankaj(_dot_)chaturvedi(_at_)idsil(_dot_)com]
Sent: Thu 6/5/2008 1:02 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Value of attribute starts-with or contains



And even <xsl:apply-templates
select=".//entry/contains[(_at_)aid5:cellstyle='tbody_cell']"/> is not working.
:-(


Thanks Michael. That's why I was getting the 1 in my output.

Well I don't wanted to count them that I was trying to debug my code, I am
actually trying to apply-templates with the check.


Something like <xsl:apply-templates
select="contains[.//entry/@aid5:cellstyle='tbody_cell']"/>

As I have another entries whose values differs for @aid5:cellstyle, and
which unfortunately I have not shown in below mark up.

Can this be done.


-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com]
Sent: Thursday, June 05, 2008 12:42 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Value of attribute starts-with or contains


contains() returns a boolean, and the count() of a boolean is always 1.

Michael Kay
http://www.saxonica.com/


-----Original Message-----
From: Pankaj Chaturvedi [mailto:pankaj(_dot_)chaturvedi(_at_)idsil(_dot_)com]
Sent: 05 June 2008 07:59
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Value of attribute starts-with or contains

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>
--~--



Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email. 

www.wipro.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>
--~--