xsl-list
[Top] [All Lists]

Re: [xsl] Condition Based Count of Sections

2007-04-13 02:54:39
I have just thinking to start it and hanged in the first stage that how to match and how to skip count of that sections those don't have any paragraph. I you just give a smart look over "INPUT" and "OUTPUT", you can understand very easy.

thanks for a quick response!!!
JSR

At 11:38 AM 4/13/2007 +0200, you wrote:
J. S. Rawat wrote:
Hi:
This seems a very complex condition as per my understanding because I am new in this field. I want a "count" and "level" attribute (as shown in the output file) of <chapter>, <sect1> , <sect2> and <sect3> on the following basis: 1. <sect> or <chapter> which does have paragraph should be skiped because no section should be empty. 2. For counting perpose <chapter>, <sect1> , <sect2> and <sect3> should be treated as same level.
3.  Depth of "level" attribute should be measure by its parent tag.

INPUT
<chapter>


OUTPUT
<chapter count="1" level="1.1">

Can you please elaborate with:
1. Your current XSLT stylesheet based on your input and what it does wrong (i.e., what is the difference with your preferred output) 2. The XSLT version and the processor + version you are using (Saxon, browser-based, Gestalt etc)

Cheers,
-- Abel

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