<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29172</bug_id>
          
          <creation_ts>2015-10-02 13:46:04 +0000</creation_ts>
          <short_desc>[FO31] Avoid anonymous types in schema for fn namespace</short_desc>
          <delta_ts>2016-03-22 10:08:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Functions and Operators 3.1</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>123448</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-02 13:46:04 +0000</bug_when>
    <thetext>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=&quot;element(*, typeName)&quot;. 

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123532</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-06 17:34:00 +0000</bug_when>
    <thetext>The changes were approved, and have been applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123535</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-06 17:48:40 +0000</bug_when>
    <thetext>The test json-to-xml-046 has also been updated.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>