XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Adam ShelleySubject: Problems with recursive template
Author: Adam Shelley
Date: 31 Oct 2003 07:03 PM
Hello,

I am having a problem using a recursive template when processing XSLT. When I run the project it does not return the expected results. The only way I can get this template to work is by setting a debug point at the beginning of both templates that are using recursion and by holding down the F10 key until completion. I have also tried building this with FOP and unfortunately FOP does not return the expected results either. This indicates to me that there is a problem with my template but I'm not sure what: it works in debug.

I'm attaching the XSL and a sample XML file. If anyone can figure this out I'd appreciate it.

Again, this does work as intended when the debug points are set at the start of each recursive template: groupSet, output.

The function of groupSet is to build the pdf bookmarks. The function of output is to build the pages of the pdf. The source XML file includes GROUP elements that specify sorting and grouping of particular VEHICLE/ATTRIBUTE elements.

Let me know if you need any more information.
-Adam

sorry about the double upload of the files. The two sets are the same.


ApplicationvehicleIndex1.xsl
xsl file

DocumentvehicleIndex1(1).xsl
xsl file

DocumentVEH4.XML
source xml file

DocumentVEH4(1).XML
source xml

Postnext
Ivan PedruzziSubject: RE: Problems with recursive template
Author: Ivan Pedruzzi
Date: 01 Nov 2003 12:42 AM
Adam,

We did several experiments and we believe that the cause is a bug in
xalan.
You can easily replicate the faulty behavior running the stylesheet with
a command line.

The problem seems originated by calling the nodeset function with
something that is already a nodeset.
If you remove all the xalan:nodeset inside the with-param in the
call-template the stylesheet works as expected.

There is for sure an interaction between the bug and how stylus setup
the processor for debugging so in same cases it works as expected.
Unfortunately I can't be more accurate at this point.

We will continue our investigation.

Thank for reporting the problem.
Ivan




> -----Original Message-----
> From: stylus-studio-tech Listmanager
> [mailto:listmanager@edn.exln.com]
> Sent: Friday, October 31, 2003 7:27 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: Problems with recursive template
>
>
> From: "Adam Shelley"
>
> Hello,
>
> I am having a problem using a recursive template when
> processing XSLT. When I run the project it does not return
> the expected results. The only way I can get this template
> to work is by setting a debug point at the beginning of both
> templates that are using recursion and by holding down the
> F10 key until completion. I have also tried building this
> with FOP and unfortunately FOP does not return the expected
> results either. This indicates to me that there is a problem
> with my template but I'm not sure what: it works in debug.
>
> I'm attaching the XSL and a sample XML file. If anyone can
> figure this out I'd appreciate it.
>
> Again, this does work as intended when the debug points are
> set at the start of each recursive template: groupSet, output.
>
> The function of groupSet is to build the pdf bookmarks. The
> function of output is to build the pages of the pdf. The
> source XML file includes GROUP elements that specify sorting
> and grouping of particular VEHICLE/ATTRIBUTE elements.
>
> Let me know if you need any more information.
> -Adam
>
>
>
> To reply: mailto:stylus-studio-tech.7107@edn.exln.com
> To start a new topic: mailto:stylus-studio-tech@edn.exln.com
> To login: http://edn.exln.com/~SSDN
>

Posttop
Adam ShelleySubject: RE: Problems with recursive template
Author: Adam Shelley
Date: 03 Nov 2003 12:36 PM
Ahh, thanks a lot: I didn't mean to make you do my debugging. I removed the calls the to nodeset function in with-param and it works as expected.

Weird how it worked in debug mode. Thats what made me post it here.

Thanks for the insight.

-Adam

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.