Subject: Re: [xsl] What the default datatype of an stylesheet parameter ? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Thu, 24 Nov 2011 23:38:22 +0000 |
Michael Kay Saxonica
Hi all,
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"/>
I was really astonished to see that $foo instance of xs:string returns false()
I then typed the parameter : <xsl:param name="foo" as="xs:string"/> and got true()
What was the type of $foo before I casted it with as="xs:string" ? Has it any type ...?
Thank for your lightening me :-)
Cheers,
Matthieu
PS : my bookmarks about that topic : http://www.dpawson.co.uk/xsl/rev2/datatypes.html http://www.w3.org/TR/xmlschema-2/#built-in-datatypes
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] What the default datatype, Michael Kay | Thread | [xsl] result-document output method, Andrew Welch |
Re: [xsl] What the default datatype, G. Ken Holman | Date | Re: [xsl] What the default datatype, Michael Kay |
Month |