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
Joe RobeSubject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Joe Robe
Date: 11 Jun 2007 04:59 PM
Hi,

I use report generator to create xsl-fo document. I attach an XML data source to create the correct document. Once the XSL is build, it replaces my xpath by "$input1/Xpath.." and puts a input parameter at the beginning of the stylesheet.

This crashes my application which is supposed to use the stylesheet ( I use XSLTransform to transform XML data to the XSL-FO output and than render it via FOP).

How can I get rid of that parameter ? Of course i can manually remove it in the created XSL, but that's tedious because every time I change the report I have to remove everything manually.

Joe

Postnext
Minollo I.Subject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Minollo I.
Date: 11 Jun 2007 06:09 PM
In XML Publisher, click on the XML datasource, and either right click > Set as default, or click on the Set as default button.

That will make the XSLT/XQuery use the selected XML document as the default input context.

Postnext
Joe RobeSubject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Joe Robe
Date: 11 Jun 2007 06:14 PM
Thanks, I somehow indeed had an old datasoruce in the file. I did your step , refreshed and now its o.k

Thanks

Postnext
Joe RobeSubject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Joe Robe
Date: 12 Jun 2007 04:13 PM
sorry I most reopen this message !

Setting the (only) document as the default does NOT remove the document (inout) parameter from it !

I have to remove that manually in teh xml file and than reopen !

I guess this is a bug ???

Postnext
Joe RobeSubject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Joe Robe
Date: 12 Jun 2007 04:20 PM
more infromation

the problem happens if the name of the source XML changed but is still the same document !

Than the xpath references to the old one and than obvioulsy SS creates a parameter for the new one !

How can i move all Xpath to use the new one ?

Joe

Postnext
Minollo I.Subject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Minollo I.
Date: 17 Jul 2007 04:42 PM
Joe,
sorry for the very late response. Could you give us more details about how many data sources your report is dealing with? Also, keep in mind that in XSLT at least one datasource will always be associated to the default input; if none is marked as default, one will be picked. The other data sources will be accessed as external parameters.

Thanks.

Postnext
Joe RobeSubject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Joe Robe
Date: 17 Jul 2007 05:36 PM
there is only one datasource. As I already mentioned, this happens if the datasource is changed later.

Joe

Posttop
Minollo I.Subject: how to get rid of parameter in xsl-fo trasnformation ?
Author: Minollo I.
Date: 17 Jul 2007 05:41 PM
That's strange, especially considering the behavior for XSLT, where one document is always associated to the default input. We'll try digging deeper; thanks.

 
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.