<?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>1284</bug_id>
          
          <creation_ts>2005-05-03 09:39:48 +0000</creation_ts>
          <short_desc>use of xsl:type in XqueryX instances</short_desc>
          <delta_ts>2005-08-08 23:14:04 +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>XQueryX 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</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>
          
          <blocked>1285</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Carlisle">davidc</reporter>
          <assigned_to name="Jim Melton">jim.melton</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>3586</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-05-03 09:39:48 +0000</bug_when>
    <thetext>XqueryX currently uses a mixture of specific elements
eg &lt;xqx:forExpr&gt; and generic elements modified via xsi:type
eg    &lt;xqx:expr xsi:type=&quot;xqx:flworExpr&quot;&gt;

It would be a lot more consistent (and a lot less ugly) if the
need for xsi:type was removed and specific elements were added to cover all
cases, so for example &lt;xqx:flworExpr&gt;

XqueryX isn&apos;t intended for human consumption so perhaps uglyness will not be
seen as a valid argument, so perhaps a more important reason is that using the
Qname in an attribute value here makes it much harder to generate or process
xqueryx with generic XML tools.

Currently xqueryx is normatively defined via an xslt1 stylesheet that tests for

  &lt;xsl:template match=&quot;xqx:expr[@xsi:type=&apos;xqx:flworExpr&apos;]&quot;&gt;

This means that any tool generatng XqueryX _must_ use the xqx prefix here.
Just being valid to the XSD schema is not enough.

This is rather hard to arrange if the xqueryx document is being written using
some generic xml-namespace/xml-schema processing pipeline which might have its
own ideas about which prefixes to use for which namespaces.

Conversely if the normative definition were changed from the current xslt1
string comparison to (say) an xslt2 schema-aware comparision of a Qname type
attribute value then the prefixes could be arbitrary but it would be much harder
to process XqueryX with an installed base of schema-unaware tools such as xslt1
or XSLT2-basic (or Xquery without schema support).

If instead, you simply had to do a namespace aware comparision of element names,
then pretty much any current XML processing application could handle xqueryx files.


David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3009</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-06-02 20:31:44 +0000</bug_when>
    <thetext>The XML Query Working Group has discussed this comment at some length and is
sympathetic to making the sort of changes that you have suggested.  A further
comment will be added to this bug report when the actual changes have been
worked out. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4353</commentid>
    <comment_count>2</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2005-06-26 23:30:45 +0000</bug_when>
    <thetext>The Query WG agrees with your suggestion and has revised the XQueryX schema to
eliminate the use of the &lt;xqx:expr&gt; element in XQueryX instance documents (in
the schema, it remains as an abstract element).  Those changes are still subject
to review and change by the WG.  When they are approved, another comment will be
added to this thread.  When, and if, the changes become visible to you, we hope
that you will review them and mark this comment CLOSED. </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>