XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] isXPath1 / isXPath2 -- not(/..)

At 2015-12-19 09:49 -0800, Dimitre Novatchev wrote:
There seems to be something wrong with the type evaluation of Saxon 9.1J

When I evaluate this:

 /.. instance of item()

the result is:

 false()
I think that is correct, because /.. evaluates to the empty set, and there are no values in the empty set, so how could the expression be true()?

I get the same with:

() instance of item()

As item() is the root of the type system and every possible value is an item(), the above result means that /.. has type that isn't defined anywhere in the type system.
But /.. isn't a value, it is the empty set ... would item() include the empty set as a value?

I do get true() with

() instance of item()?

And if the empty set were a value that is included in item(), then one couldn't have a sequence type of "item()?".

I hope this is helpful.

. . . . . . . . . Ken


--
Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm |
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ |
G. Ken Holman mailto:gkholman@CraneSoftwrights.com |
Google+ profile: http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers: http://www.CraneSoftwrights.com/legal |


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS