Bug 5984 - [XQuery] xs:integer is not primitive
: [XQuery] xs:integer is not primitive
Status: CLOSED FIXED
Product: XPath / XQuery / XSLT
XQuery 1.0
: Recommendation
: All All
: P2 minor
: ---
Assigned To: Don Chamberlin
: Mailing list for public feedback on specs from XSL and XML Query WGs
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-08-24 02:17 UTC by Michael Dyck
Modified: 2008-09-10 23:56 UTC (History)
0 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dyck 2008-08-24 02:17:19 UTC
(As mentioned in Bug 5267 comment #3.)

In the XQuery spec,
    section 2.5.1 Predefined Schema Types, point 5
and
    Appendix H Glossary, under xs:anyAtomicType
both say:

    All primitive atomic types, such as xs:integer, xs:string,
    and xs:untypedAtomic, have xs:anyAtomicType as their base type.

but xs:integer is not a primitive atomic type. (And I don't think
xs:untypedAtomic is either, but that's a tricker case.)

You could just use different examples, e.g. xs:decimal and xs:dateTime.
Comment 1 Don Chamberlin 2008-09-10 23:55:04 UTC
Since this is a minor (editorial) bug, I have accepted and implemented the
suggested change. This change will appear in a forthcoming errata document.
Don Chamberlin (editor of XPath 2.0 and XQuery 1.0 specifications).


  翻译: