[Bug 29172] New: [FO31] Avoid anonymous types in schema for fn namespace

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

            Bug ID: 29172
           Summary: [FO31] Avoid anonymous types in schema for fn
                    namespace
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          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
  Target Milestone: ---

We get most value from schema-aware XQuery and XSLT processing if we use named
types rather than anonymous types; the precise type is then available for use
in SequenceType constructs of the form as="element(*, typeName)". 

This is illustrated by test json-to-xml-046, which is not able to test the
precise type annotation on an element node because the most precise type is
anonymous. 

I therefore propose that in schema-for-json.xsd we replace all anonymous types
by named types. (No change is needed to analyze-string.xsd because it already
follows this convention.)

The change does not affect any existing queries, nor does it affect the
validation of instances; it purely makes more precise type information
available for use in queries and stylesheets.

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

Received on Friday, 2 October 2015 13:46:06 UTC