RE: question regarding element types in function definitions/XQuery

At 01:12 PM 2/21/2003 -0500, Todd A. Mancini wrote:

>(1) element bar
>
>(2) element of type xs:integer
>
>When these are combined, it appears that the WG is struggling to decide
>which form restricts which.  Does the 1st form restrict the 2nd form, or
>vice-versa?  Maybe there' a third answer -- neither.  Life becomes
>easier if

Another way to look at this is to say that (1) has a default type - the 
type found in the global bar element declaration. Then and (2) have the 
same semantics - they both match an item if the item's element name and the 
type correspond to the name and type of the SequenceType.

Is that a bridge we could sell you?

Jonathan 

Received on Friday, 21 February 2003 13:25:41 UTC