[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to count of chunks

Subject: Re: How to count of chunks
From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Mon, 14 May 2007 16:27:54 +0530
Re:  How to count of chunks
Would anybody of you help me regarding below.

At 03:10 PM 5/12/2007 +0530, you wrote:
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.