This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1689 - [FS] automatic cast of any atomic type or just untypedAtomic?
Summary: [FS] automatic cast of any atomic type or just untypedAtomic?
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Formal Semantics 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: Jerome Simeon
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-17 21:42 UTC by Fred Zemke
Modified: 2005-09-06 13:05 UTC (History)
0 users

See Also:


Attachments

Description Fred Zemke 2005-07-17 21:42:48 UTC
4.1.5 Functions calls 
The definition of []Convert(SequenceType) says to invoke 
fs:convert-simple-operand if SequenceType <: xs:anyAtomicType.
I believe that this step is supposed to implement the statement
in the XQuery language spec, section 3.1.5 "Function calls"
under the bolded phrase "function conversion rules", first
bullet, list item 2, where it says "Each item in the atomic 
sequence that is of type xdt:untypedAtomic is cast to the 
expected atomic type."  So the XQuery language spec says that
only xdt:untypedAtomic values are cast, whereas the Formal Semantics
says that any atomic type (subtype of xs:anyAtomicType)
is converted.  Personally I think the Formal Semantics is to be
prefered here, but this needs to be decided.
Comment 1 Jerome Simeon 2005-07-21 00:36:06 UTC
If you look at the section 7.1.4 The fs:convert-simple-operand, you will see
that the function processes sequence of atomic values, and only convert those
values which are of type xdt:untypedAtomic.

Do you believe there is a problem with that definition?

- Jerome
Comment 2 Jerome Simeon 2005-07-22 23:06:32 UTC
RESOLUTION: Bug 1689 is closed.  No change to document.  Dana will respond.

- Jerome Simeon
On behalf of the XML Query and XSL WGs