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

table - possible recursion issue....?

Subject: table - possible recursion issue....?
From: <Sonja.Hendrick@xxxxxxxxxxx>
Date: Wed, 8 Nov 2006 23:02:29 -0500
 table - possible recursion issue....?
The part that is tripping me up. I believe there is a way of programming
without a recursion template to get the results I am looking for.



The transform locates the row/entry/@morerows. The value for
@morerows[=4], add a 1 and that is the row we want to add the attribute
to. The cell"entry" where the @morerows sits is the entry in the
following row.



I need the value for @morerows 2 to be static to compare it with the
current row.



So if following::row/position() = $morerows, then create attribute. How
do I get the variable $morerows (example variable) to hold a static
number (2) so I can compare it with the position of the following row.



I do not think I need recursion for this if I can maintain the value of
the value in @morerows.



I appreciate any suggestions.

Please run my code so see what I mean.



So if there is:



<row>

<entry>

<entry @morerows="2">

<entry>

</row>



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-2011 All Rights Reserved.