Subject: Re: XSLT2 test for null
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 03 Mar 2011 10:52:57 +0100
|
Hi David,
You can define this behavior yourself by selecting a default value, i.e.:
<xsl:param name="routeValues" as="node()" select="$default/routeValues"/>
Or like so:
<xsl:param name="routeValues" as="node()" >
<default />
</xsl:param>
If you don't specify a default value, the empty sequence is returned, if
the as-attribute allows that.
Kind regards,
Abel Braaksma
On 3-3-2011 10:44, Merrilees, David wrote:
Hi
In XSLT2, how should I test for null, or empty parameters? For example, if I have<xsl:param name="routeValues" as="node()?" /> how should I test whether a value has been passed, or whether it's empty?
Thanks
This is a confidential email. Tesco may monitor and record all emails. The views expressed in this email are those of the sender and not Tesco.
Tesco Stores Limited
Company Number: 519500
Registered in England
Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL
VAT Registration Number: GB 220 4302 31
|