Re: [xsl] Count

Subject: Re: [xsl] Count
From: António Mota <amsmota@xxxxxxxxx>
Date: Tue, 22 Feb 2005 19:26:21 +0000
Something like 

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


On Tue, 22 Feb 2005 11:23:04 -0800 (PST), Tham Tinh <khautinh@xxxxxxxxx> 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

Current Thread
  • [xsl] Count
    • Tham Tinh - Tue, 22 Feb 2005 11:23:04 -0800 (PST)
      • António Mota - Tue, 22 Feb 2005 19:26:21 +0000 <=
      • Wendell Piez - Tue, 22 Feb 2005 15:00:33 -0500
        • Tham Tinh - Tue, 22 Feb 2005 13:37:52 -0800 (PST)