<?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>2261</bug_id>
          
          <creation_ts>2005-09-16 13:13:15 +0000</creation_ts>
          <short_desc>[xqueryx]  function names</short_desc>
          <delta_ts>2005-09-26 22:58:00 +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 XP</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="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>6323</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-09-16 13:13:15 +0000</bug_when>
    <thetext>Currently xqx:functionName allows any Qname which means that several XqueryX 
documents using this element translate to node tests such as node() or element()
that use a function-like syntax but are not functions.

It would be good if the schema declaration could use a facet to stop the node
test keywords being used as function names, unfortunately XSD can&apos;t do this
(unlike, say, Relax NG) as it can not restrict the content of the element based
on the non-appearance of the xqx:prefix attribute.

However the stylesheet could easily be modified to generate an error in these cases.

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6361</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-09-20 11:56:14 +0000</bug_when>
    <thetext>Thanks for your comment.  This is, I believe, a matter of philosophy.  Should
the XQueryX spec (including schema and stylesheet) be designed to prevent the
use of XQueryX constructs that translate into invalid, useless, or merely
ignorant XQuery syntax?  Well, we&apos;ve tried to accomplish some minimal level of
that kind of prevention, but have (so far) taken the approach that any XQueryX
document that transforms into invalid XQuery (syntactically or semantically) has
undefined semantics. 

Nonetheless, we will take a closer look at this philosophical direction and see
what changes might be appropriate. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6364</commentid>
    <comment_count>2</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-09-20 12:07:04 +0000</bug_when>
    <thetext>&gt; but have (so far) taken the approach that any XQueryX
&gt; document that transforms into invalid XQuery (syntactically or semantically)
&gt; has undefined semantics. 

I agree with that approach, but that is not the problem that is addressed here.
The problem here is that &lt;xqx:functionName&gt;element&lt;/ _should_ translate to
an invalid xquery (or an error raised by the translator) but that currently it
has _defined_ semantics as it translates to a perfectly valid XQuery expression
but as a node test and not as a function.

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6461</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-09-26 22:07:24 +0000</bug_when>
    <thetext>We have accepted your comment and proposed solution, and have made the
appropriate changes to the XQueryX stylesheet. 

Please let us know if you agree with this resolution of your issue, by adding a
comment to the issue record and changing the Status of the issue to Closed. Or,
if you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG&apos;s decision to the Director, then also change the
Status of the record to Reopened. If you wish to record your dissent, but do not
wish to appeal the decision to the Director, then change the Status of the
record to Closed. If we do not hear from you in the next two weeks, we will
assume you agree with the WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6468</commentid>
    <comment_count>4</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-09-26 22:57:37 +0000</bug_when>
    <thetext>thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>