Subject: Re: [xsl] is () a node or an atomic? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 03 Oct 2011 13:11:04 +0100 |
More empty sequence 'fun':() is not a type, so it does not have a base type.
What is the base type of (), is it a node or an atomic, or something else?
It's convenient to think of empty-sequence() as being a SequenceType whose item type is item() and whose cardinality is "exactly zero".
I can specify empty-sequence() as the sequence type:
<xs:variable name="foo" select="()" as="empty-sequence()"/>
That diagram (which I hate) actually shows two type hierarchies: the hierarchy of XDM item types (rooted at item()), and the hierarchy of XSD schema types (rooted at xs:anyType). It doesn't show SequenceTypes.
...but its not mentioned in the type hierarchy:
http://www.w3.org/TR/xquery-operators/#datatypes
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: is () a node or an atomic, Andrew Welch | Thread | [xsl] Providing a value for the 'se, Mark |
Re: [xsl] () eq () vs () = (), Michael Kay | Date | Re: [xsl] () eq () vs () = (), Andrew Welch |
Month |