Subject: Re: [xsl] How to count of chunks From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx> Date: Mon, 14 May 2007 16:27:54 +0530 |
Dear List- I have discussed this issue earlier with you. In that time I have not elaborated the logic and not got the right solution. It seems little bit complex and I think we should use global variable but not sure. The logic is based on DocBook's chunking rules. Below are the key points of the logic: 1. We are counting chunks of following elements <chapter>, <sect1>, <sect2> and <sect3> 2. Count- It is count of those chunks which contains content. 3. Level - It is hierarchical number of the chunk (e.g. 1, 1.1, 1.2, 1.2.1, etc) to enable the output file to be re-assembled in a hierarchical structure. 4. A rule should be devised that will prevent empty chunk being generated. For example, the following XML would generate empty pages for the <book> and <chapater> as they have no content. This is something we need to avoid when the XSLT is devised, perhaps by combining lower content into an empty chunk.
Note: Please read the comments of OUTPUT for better understanding
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to count of chunks, J. S. Rawat | Thread | [xsl] declaring variable as documen, bryan rasmussen |
[xsl] RE: Replacing the space chara, Mark Peters | Date | Re: [xsl] Return system's date and , Abel Braaksma |
Month |