[Bug 29570] New: [FO31] 19.3.6 Casting to list types

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29570

            Bug ID: 29570
           Summary: [FO31] 19.3.6 Casting to list types
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

In FO31 19.3.6 Casting to list type,s, it is written:

"For example, given a user-defined type my:coordinates defined as a list of
xs:integer with the facet <xs:length value="3"/>, the expression
my:coordinates("2 -1") will return a sequence of two xs:integer values (2, -1),
while the expression my:coordinates("1 2 3") will result in a dynamic error
because the length of the list does not conform to the length facet. The
expression my:coordinates("1.0 3.0") will also fail because the strings 1.0 and
3.0 are not in the lexical space of xs:integer."

With <xs:length value="3"/>, shouldn't my:coordinates("2 -1") fail and
my:coordinates("1 2 3") succeed?  Note this also appears in F&O3.0.

It might be worth noting that in the minLength is 0, then my:list("") will
return the empty sequence (or am I mistaken?)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 11 April 2016 16:00:32 UTC