[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

What the default datatype of an stylesheet parameter ?

Subject: What the default datatype of an stylesheet parameter ?
From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx>
Date: Thu, 24 Nov 2011 21:19:06 +0100
 What the default datatype of an stylesheet parameter ?
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

--
Matthieu Ricaud
IGS-CP
Service Livre numirique

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.