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

Generate N elements and attribute values

Subject: Generate N elements and attribute values
From: "Kenny Bogoe (BogoeMD)" <kenny@xxxxxxxxx>
Date: Fri, 16 Jul 2004 20:50:04 +0200
elements values
I have already posted a question on how to generate dynamic attribute values
within a recursive template, but I have to admit that I got a bit confused
when reading my own posting, so I retry with a simplified version of my
problem.

A recursive template is generating N=4 <tr> and another inline recursive
template is generating n=3 <td> and so far I have no problems. But when it
comes to the attribute values of <td name="?"/> I really do not know what to
do since the @name of <td> is generated on the fly and after all <tr> are
generated. As shown in the result tree below the @name of <td> always
follows the @no of <tr>.

So my simple question is how to generate @name values on the fly?


This is the result tree I need:

<tr no="0">
    <td name="0"/>
    <td name="0"/>
    <td name="0"/>
</tr>
<tr no="1">
    <td name="1"/>
    <td name="1"/>
    <td name="1"/>
</tr>
<tr no="2">
    <td name="2"/>
    <td name="2"/>
    <td name="2"/>
</tr>
<tr no="3">
    <td name="3"/>
    <td name="3"/>
    <td name="3"/>
</tr>


Thanks,
Kenny Bogoe

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.