[Xpath-ng] List constructor syntax
Uche Ogbuji
uche.ogbuji at fourthought.com
Tue Dec 10 10:59:00 MST 2002
> Also, if we adopt the XPath 2.0 convention of using an empty list to
> mean an unknown or invalid value,
>
> I'm fairly sure that's a bad convention,
I think it's OK in some cases, i.e. as a return from location path selection.
But I agree that it's a bad general convention.
> one that the xpath2 drafts seem
> to have been moving away from as far as possible.
>
> Initially they tried to use () as an "unknown" value and give logical
> operators three valued logic sematics using true() false() and ()
> but using () as an exceptional value doesn't fit well with the fact that
> it's a perfectly normal and expected return value for any path
> expression, what used to be called an empty node set...
> So later xpath2 drafts seem to be backing off the 3 valued logic idea.
Very hesitant suggestion: maybe we should introduce a Null value into the core
as a general-purpose error flag.
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Tour of 4Suite - http://www.xml.com/pub/a/2002/10/16/py-xml.html
Proper XML Output in Python - http://www.xml.com/pub/a/2002/11/13/py-xml.html
RSS for Python - http://www-106.ibm.com/developerworks/webservices/library/ws-p
yth11.html
Debug XSLT on the fly - http://www-106.ibm.com/developerworks/xml/library/x-deb
ugxs.html
More information about the Xpath-ng
mailing list