Subject: Re: [xsl] initial template parameters From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 18 Mar 2010 08:07:41 +0100 |
"Parameters passed to the transformation by the client application are matched against stylesheet parameters (see 9.5 Global Variables and Parameters), not against the template parameters declared within the initial template. All template parameters within the initial template to be executed will take their default values."
Why? :-(
<xsl:param name="global-command-line"/> <xsl:template match="/"> <xsl:param name="initial" select="$global-command-line"/> ...$initial... </xsl:template>
<xsl:param name="x"/> <xsl:template match="/"> <xsl:param name="x" select="$x"/> ...$x... </xsl:template>
<xsl:param name="x"/> <xsl:template match="/"> ...$x... </xsl:template>
-- XSLT/XQuery training: San Carlos, California 2010-04-26/30 Principles of XSLT for XQuery Writers: San Francisco,CA 2010-05-03 XSLT/XQuery training: Ottawa, Canada 2010-05-10/14 XSLT/XQuery/UBL/Code List training: Trondheim,Norway 2010-06-02/11 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] initial template paramete, Wolfgang Laun | Thread | RE: [xsl] initial template paramete, Michael Kay |
Re: [xsl] initial template paramete, Wolfgang Laun | Date | RE: [xsl] exslt random:random-seque, Michael Kay |
Month |