Subject: Re: [xsl] What the default datatype of an stylesheet parameter ? From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx> Date: Fri, 25 Nov 2011 10:23:53 +0100 |
Regards, Matthieu.
On 24/11/2011 23:31, G. Ken Holman wrote:At 2011-11-24 21:19 +0100, Matthieu Ricaud-Dussarget wrote:I think Ken is answering a different question - what is the default value of the parameter? If you don't supply a value, $foo will indeed be the empty sequence.When sending a parameter to the stylesheet( from command line with saxon for example), I thought it was always a string (which is a pitty when you need boolean parameter).
I made a simple test, sending "bar" to parameter foo : <xsl:param name="foo"/>
In XSLT 1, that is, indeed, an empty string as you anticipated. In XSLT 2, however, that is the declaration of an empty sequence.
Michael Kay Saxonica
-- Matthieu Ricaud IGS-CP Service Livre numirique
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] What the default datatype, Michael Kay | Thread | Re: [xsl] What the default datatype, G. Ken Holman |
Re: [xsl] What the default datatype, Michael Kay | Date | Re: [xsl] What the default datatype, G. Ken Holman |
Month |