[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: isXPath1 / isXPath2 -- not(/..)

  • From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • To: Dimitre Novatchev <dnovatchev@gmail.com>,Hermann Stamm-Wilbrandt <STAMMW@d...>
  • Date: Sat, 19 Dec 2015 12:58:54 -0500

Re:  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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.