xsl-list
[Top] [All Lists]

Re: [xsl] XPath that returns nothing

2011-09-28 05:14:13
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. ________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--