Subject: [xsl] What the default datatype of an stylesheet parameter ? From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx> Date: Thu, 24 Nov 2011 21:19:06 +0100 |
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 ...?
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
-- Matthieu Ricaud IGS-CP Service Livre numirique
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Wrap an entire element if, G. Ken Holman | Thread | Re: [xsl] What the default datatype, G. Ken Holman |
Re: [xsl] Wrap an entire element if, G. Ken Holman | Date | Re: [xsl] What the default datatype, G. Ken Holman |
Month |