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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Report editor automatic scroll... (2)
-> + java.lang.ClassNotFoundExcepti... (4)
-> + Strange output (6)
-> + Built-In Processor Handling CD... (5)
-> - Parameter values with multiple... (3)
-> ->Parameter values with mul...
-> ->Parameter values with mul...
-> + Schema review (2)
-> + seperating values within one e... (2)
-> + Filtering 1000's of XML files ... (2)
-> + replace fop0.20 by 094 (2)
-> + HTML tables from sorted XSL (3)
-> + From dicisionshema to XML (4)
-> + Convert data from SQL database... (2)
-> + Really Really need help - xsl:... (2)
-> + xslt: xsl:include not finding ... (2)
-> + One field in multiple lines (3)
-> + Stylis studio editor slow (2)
-> + Schema Documentation (3)
-> + Convert PCL to XML (7)
-> + crashing when connected via VP... (3)
-> + Repeater err:XPST0003 (3)
-- Previous [1321-1340] [1341-1360] [1361-1380] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Boss AtHomeSubject: Parameter values with multiple XSL files
Author: Boss AtHome
Date: 30 Nov 2007 09:16 PM
I would appreciate advice on understanding how to use the Scenario > Parameter Values when the "main" XSL file includes other XSL files by using xsl:include.

The parameters in question are paths to locate various XML and other files that are used when the application runs. In production the parameter values will be passed when the application is called, but when developing in SS I want to use different local paths. The local paths can be relative or explicit, I don't care which.

I have the scenario in the "main" [is there a correct term for this file?] XSL file. Do I need to set the same parameters in all of the XSL files or just in this main file?

Does it matter which stylesheet the xsl:param is declared?

Second question: If the above issues don't impact resolving the parameters when SS runs the transformation, is there some special syntax needed so that SS will use Scenario's parameter value and not the @select default value?

Your assistance is appreciated.

Postnext
(Deleted User) Subject: Parameter values with multiple XSL files
Author: (Deleted User)
Date: 06 Dec 2007 09:01 AM
Hi Sheila,
parameters in XSL are collected from all the included stylesheets, so the parameter page in the scenario dialog should list all of them.
As for the 'main' stylesheet, it's up to you to choose it so that it includes the other stylesheets with the proper priority (i.e. if a node matches a template located in stylesheet A and one located in stylesheet B, but the main stylesheet includes A before B, the template from A is applied) - see http://www.w3.org/TR/xslt#dt-import-precedence for a more detailed explanation

Hope this helps,
Alberto

Posttop
Boss AtHomeSubject: Parameter values with multiple XSL files
Author: Boss AtHome
Date: 06 Dec 2007 11:24 PM
Thank you, Alberto, the reference you provided was very instructive :-))

   
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.