[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] priority of <xsl:variable ...> and xsltproc --stringparam
W. Borgert wrote: > Hello, > > I recectly installed a new xsltproc 1.1.0(?). With the old > version 1.0.29(?) I HAD in my .xsl to declare a variable with > <xsl:variable name="foo"/> to be able to assign a value at > the command line (using option --stringparam foo bar). With > the new version this leads to desaster, because the empty > declaration overwrites the command line value. So I removed > the declartion from my .xsl. Questions: > > - Which of the two different behaviours is the "correct" one? > you should use <xsl:param ...> instead. Parameters can take a default value that will be used, if no parameter is specified on the command line. imho it shouldn't be allowed to use variables like this at all. Markus
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]