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

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