Subject: Re: [xsl] Accessing Global Parameters from an included Stylesheet|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Jan 2004 17:49:11 -0500
Correct me If I'm wrong. I'm just trying to help u out.
In the above code, the xsl:param has to be provided inside call-template element.
<xsl:call-template name="LatestNews"> <xsl:param name="id"></xsl:param>
And the 'LatestNews' template has to be modifed as following. <xsl:template name="LatestNews"> <xsl:param-variable name="stateFolder">Default Value</xsl:param-variable>
I am getting some weird behaviour in the parsing of my XSLT stylesheets in the MSXML 4(SP2) parser and would like to ask the list if its me or the parser at fault.
As you can see I am using the $stateFolder and $stateLibraryFolder parameters from the main stylesheet to evaluate my XPATH, the problem is, whilst I CAN ACCESS $stateFolder I CANNOT access $stateLibraryFolder.
If I then define this parameter in nswTemplates.xsl I get this error:
"Global variable or parameter 'stateLibraryFolder' cannot be defined more than once with the same import precedence."
Which is what I was expecting...
My question is, should I be able to access these parameters
or should I be parsing these into each template using with-param
OR is this a MSXML bug?
-- North America (Washington, DC): 3-day XSLT/2-day XSL-FO 2004-03-15 - (San Francisco, CA): 3-day XSLT/2-day XSL-FO 2004-03-22 Asia (Hong Kong, China): 3-day XSLT/2-day XSL-FO 2004-05-17 Europe (Bremen, Germany): 3-day XSLT/2-day XSL-FO 2004-05-24 Instructor-led on-site corporate, government & user group training for XSLT and XSL-FO world-wide: please contact us for the details
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc