[Bug 28180] New: [f+o 3.1] Whitespace in xml-to-json()

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

            Bug ID: 28180
           Summary: [f+o 3.1] Whitespace in xml-to-json()
           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: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

The specification of xml-to-json() states that whitespace text nodes are
ignored. However, this doesn't make sense for text nodes that are children of a
<j:string> element, since the text node child of j:string contains the value of
the string, which may be whitespace. It should say "whitespace text nodes are
ignored, except those whose parent element is an element named 'string'"

Also, for the content of other simple-valued elements (number, boolean) I think
it makes sense to strip leading and trailing whitespace, so that an untyped
input is accepted if the result of validating it against the schema would be
accepted.

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

Received on Monday, 9 March 2015 16:48:37 UTC