W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2015

[Bug 29028] New: fn:serialize should specify the required type for QNames-type

From: <nobody@w3.org>
Date: Wed, 05 Aug 2015 17:53:00 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29028-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29028

            Bug ID: 29028
           Summary: fn:serialize should specify the required type for
                    QNames-type
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---
             Group: XSLXQuery_WG

fn:serialize should specify the required type for QNames-type.  

Currently it says this:

  "For QNames-type, either a sequence or an array of xs:QName values."

It isn't clear if required type is item()* or xs:QName* or something else.  So,
for example, it isn't clear which error code to use if the sequence contains an
integer and it isn't clear what happens if the array contains the empty
sequence.

I suggest something like this:

  "For QNames-type, an instance of xs:QName*"    

Which implies the required type is xs:QName*.  This means that during function
conversion, an integer in the sequence raises a type error, elements are
atomized, arrays are atomized/flattened, etc.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 5 August 2015 17:53:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:55 UTC