<?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>20864</bug_id>
          
          <creation_ts>2013-02-04 14:30:44 +0000</creation_ts>
          <short_desc>[XQX30] Annotation arguments</short_desc>
          <delta_ts>2013-11-19 00:16:48 +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 3.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Tim Mills">tim</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>82525</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-02-04 14:30:44 +0000</bug_when>
    <thetext>XQueryX annotations allows expressions as arguments, rather than restricting the arguments to be literals.

  &lt;xsd:complexType name=&quot;annotation&quot;&gt;
    &lt;xsd:sequence&gt;
      &lt;xsd:element name=&quot;annotationName&quot; type=&quot;EQName&quot;/&gt;
      &lt;xsd:element name=&quot;arguments&quot; type=&quot;exprList&quot; minOccurs=&quot;0&quot;/&gt;
    &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84536</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2013-03-17 22:43:16 +0000</bug_when>
    <thetext>You are quite right.  One could say that this is not an error, because we already know that it is possible to write certain XQueryX expressions that cannot be transformed to correct XQuery expressions and that cannot be caught by validating the XQueryX document against the XQueryX schema. 

However, this problem was not difficult to fix, so I have done so.  Henceforward,

  &lt;xsd:complexType name=&quot;annotation&quot;&gt;
    &lt;xsd:sequence&gt;
      &lt;xsd:element name=&quot;annotationName&quot; type=&quot;EQName&quot;/&gt;
      &lt;xsd:element name=&quot;arguments&quot; type=&quot;exprList&quot; minOccurs=&quot;0&quot;/&gt;
    &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;

is:

  &lt;xsd:complexType name=&quot;annotation&quot;&gt;
    &lt;xsd:sequence&gt;
      &lt;xsd:element name=&quot;annotationName&quot; type=&quot;EQName&quot;/&gt;
      &lt;xsd:element name=&quot;arguments&quot; type=&quot;literalList&quot; minOccurs=&quot;0&quot;/&gt;
    &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;

and:

  &lt;xsd:complexType name=&quot;literalList&quot;&gt;
    &lt;xsd:sequence&gt;
      &lt;xsd:element ref=&quot;constantExpr&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
    &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;


Thanks for observing this problem!

I&apos;ve marked this bug as RESOLVED/FIXED.  If you agree, please mark it CLOSED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87343</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-05-07 16:16:08 +0000</bug_when>
    <thetext>Thanks.  I&apos;m happy that this resolves the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96483</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2013-11-19 00:16:48 +0000</bug_when>
    <thetext>The author of the original bug report agrees that it has been resolved to his satisfaction.  The fact that it was not marked CLOSED at the time was accidental, so I am marking it CLOSED now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>