[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|