Re: [xsl] XPath that returns nothing

Subject: Re: [xsl] XPath that returns nothing
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Sep 2011 11:14:01 +0100
On 28/09/2011 11:11, Andrew Welch wrote:
...so it's basically just making something explicit that is otherwise
implied?   I don't think I'd ever use it.

not at all, if you don't force the default value with select="()" then the default is an empty _string_ so then


value-of select="$x/a/b"

is a type error as you can't use a string on the lhs of /

> I don't think I'd ever use it.

I use it quite a bit:-)

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


Current Thread