[xsl] Count

Subject: [xsl] Count
From: Tham Tinh <khautinh@xxxxxxxxx>
Date: Tue, 22 Feb 2005 11:23:04 -0800 (PST)
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

Current Thread