xsl-list
[Top] [All Lists]

Re: Count

2005-02-22 12:26:21
Something like 

<xsl:number level="any" count="*"/>


On Tue, 22 Feb 2005 11:23:04 -0800 (PST), Tham Tinh 
<khautinh(_at_)yahoo(_dot_)com> wrote:
I would like to count how many level each div tag has.
 How do I do that please?  I hope that the xml is
clear enough for the helps.

I have the following xml structure:

<html>
<div class="section1">
  <p class="msoheader" align="center">Test</p>
  <p class="msoheader" align="center"></p>
  <div  header-level="1"><h1>
  <span
list-number="yes">1.</span>Test.Something:</h1>
<div  header-level="2"><h2>
<span  list-number="yes">a. </span>Test</h2>
</div>
<div  header-level="2"><h2>
<span  list-number="yes">b. </span>Test</h2>
</div>
<div  header-level="2"><h2>
<span  list-number="yes">c. </span>Test</h2>
</div>
<div  header-level="2"><h2>
<span  list-number="yes">d. </span>test</h2>
</div>
</div>
<div class="section2">
...
...
...
</div>
</html>

=====
"It is essential to know that to be a happy person, a happy family, a happy 
society, it is very crucial to have a good heart, that is very crucial,"
Dalai Lama

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

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