This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: recursion and looping


Splendid

Phil's solution is just the "stopper" i was looking for. 

> <xsl:if test="$nodes">
> <!-- i.e. "are there any nodes that haven't been handled yet?";
> whereas "not($nextset='')" is true when there are no nodes in $nextset that
> have a string value of '' - which looks like why you're getting infinite
> recursion (it's true for the empty node-set) -->

I leave to some other day I tackling the problem of generalizing the
solution to attribute values that are not numerically incremental in the
XML file to be transformed. Sebastian Rahtz solution using XT's node-set
extension (found under "grouping and sorting" in the FAQ was very
useful in guiding my steps to the point where Phil Lanch's proposal
came to the rescue.

Thanks


-- 
Francois Lachance
Post-doctoral Fellow
projet HYPERLISTES project
http://www.humanities.mcmaster.ca/~hyplist/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]