Re: AW: simple conditional looping
Thanks for replying. See my xml and xsl code below to get more idea and why I need conditional looping.
my xml code is as follows: <orders> <order id="1">ABC</order> <order id="2">XYZ</order> <order id="3">QWE</order> </orders>
The orders tag will grow as and when new orders are added. Now in my stylesheet (PRINTER FRIENDLY) I need to display the orders as below.
ORDERS: 1. ABC 2. XYZ 3. QWE 4. ________ 5. ________ 6. ________ . . . . 50. _______
In my printer friendly stylesheet I need to display minimum 50 lines. If there are less then 50 orders then all the remaining lines will be blank with an underline. The transformed page (this xml and xsl will be transformed using ASP.NET) will be printed and the blank lines will be filled manually with a pen and Signed.
So I think conditional looping will be required.
I used recursive templates to do this as suggested by fellow list members.
From: David Carlisle <davidc@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: AW: simple conditional looping Date: Mon, 16 Aug 2004 12:19:24 +0100
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format