xsl-list
[Top] [All Lists]

RE: Count line number

2005-10-22 02:02:37

string-length(/) - string-length(translate(/,'&#xa',''))

Note however this only counts the newlines appearing in text nodes. It won't
count any that appear, for example, between the attributes in a start tag,
because those aren't visible to XSLT. It also doesn't count newlines within
comments or processing instructions, which you could include if you were
minded to.

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

-----Original Message-----
From: Rajesh Kumar [mailto:rajesh-kumar(_at_)india(_dot_)com] 
Sent: 22 October 2005 02:22
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Count line number

Hi group, 

I want to count total number of line of xml file through xsl. 
Could to send me code

-------
Thanks & Regards,
Rajesh Kumar


-- 
India.com free e-mail - www.india.com. 
Check out our value-added Premium features, such as an extra 
20MB for mail storage, POP3, e-mail forwarding, and ads-free 
mailboxes!

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



<Prev in Thread] Current Thread [Next in Thread>