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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ace RossiSubject: Performing transformations on Multiple XML Documents
Author: Ace Rossi
Date: 28 Feb 2005 09:37 AM
Hi,

Performing transformations on Multiple XML Documents...

I was testing an xsl stylesheet using the MSXML .NET processor it worked fine the first time.
But afterwords I beleive it couldn't find the xml source files.

I have enclosed the sample files if anyone has a solution to this weird problem.

You can view the expected results by clicking Output on the 1st example at:
http://www.topxml.com/xsltStylesheets/xslt_multiple_data_sources.asp

I'm using Stylus Studio 6 Build 287h, Is this a Bug?

Thanks,
Ace


UnknownDocumentWithNodeSetHTML(1).zip
Multiple XML Transforms

Postnext
Ivan PedruzziSubject: Performing transformations on Multiple XML Documents
Author: Ivan Pedruzzi
Date: 28 Feb 2005 10:22 AM

I am able to run the example without problem
Here what I do:

- Open DocumentWithNodeSetHTML.xsl
- Open the scenario dialog
- select DocumentWithNodeSetHTML.xml as Source XML
- select the .NET XSLT processor
- click Preview result

Be sure to have saved the scenario settings.

Hope this helps
Ivan

Postnext
Ace RossiSubject: Performing transformations on Multiple XML Documents
Author: Ace Rossi
Date: 28 Feb 2005 10:27 AM
Ivan,

Thats what I did also, but on subsequent attempts to process the style sheet it fails to produce the correct results.
Are you able to reprocess it serveral times with the correct output?

Thanks.

Postnext
Ivan PedruzziSubject: Performing transformations on Multiple XML Documents
Author: Ivan Pedruzzi
Date: 28 Feb 2005 11:43 AM

After some more experiments I was able to reproduce the behavior
It is related to how the processor is interpreting the following line

<xsl:with-param name="ProductNodes" select="document(.)"/>

It looks like that relative paths work only if the current directory is set to right place.
The open file dialog set the current directory, so after selecting the xml source I could not see it happening.
To fix the problem just force the argument to be a string

<xsl:with-param name="ProductNodes" select="document(string(.))"/>

Hope this helps
Ivan

Posttop
Ace RossiSubject: Performing transformations on Multiple XML Documents
Author: Ace Rossi
Date: 28 Feb 2005 12:07 PM
Works fine now.

Is there a way to tell the processors current dirctory?

Thanks Again.

 
Topic Page 1 2 3 4 5 6 7 8 9 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.