XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ralph HulscherSubject: Nested loops with different counters
Author: Ralph Hulscher
Date: 10 Nov 2005 08:59 AM
Hi all,

I need to generate XML:FO output that contains chapters that hold a various number of items.
In my output the total numer of items may not excede 18. There is an extra difficulty.... a chapter counts for two!

So the example below would count as number 7.

Chapter1
item1
item2
item3

Chapter2
item1
item2

I've been trying very hard to solve the problem but cannot find the right approach. I've used recursive templates to loop but I cannot get it to work for both levels, only for chapters or items.

Any tips???

Thanks,
Ralph

Posttop
(Deleted User) Subject: Nested loops with different counters
Author: (Deleted User)
Date: 15 Nov 2005 10:55 AM
Ralph,
Can you please give us a sample of the input xml and a little more explanation of what is the problem?

Thanks much
Clyde Kessel

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.