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

RE: problem endless rekursion

Subject: RE: problem endless rekursion
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 6 Nov 2003 10:50:51 +0200
RE:  problem endless rekursion
Hi,

> can you please help me with the following problem.
> the problem is to check a check box question. the correct 
> cells and the
> false cells should be added. the result are the correct 
> cells. there is a endless
> rekursion?????
> 
[snip]
> 
> <xsl:template match="option" mode="check">
>   <xsl:variable name="correct_cells" select=".
> |following-sibling::solution[valid_input = 1]" />

The problem is with these two variables. The current node is contained in the node-set bound to the variable and you apply the template for it, thus the infinite recursion. Also, the expressions here are not valid against the source document you showed, they should be

  following-sibling::option/solution[@valid_input = 1]

I couldn't really understand the logic of your stylesheet—could you show us the desired output?

Cheers,

Jarno - some Melotron track, can't remember which

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


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.