<?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>1618</bug_id>
          
          <creation_ts>2005-07-15 01:07:52 +0000</creation_ts>
          <short_desc>the formal type notation for element is ambiguous</short_desc>
          <delta_ts>2005-09-27 08:41:25 +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>Formal Semantics 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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fred Zemke">fred.zemke</reporter>
          <assigned_to name="Jerome Simeon">simeon</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>4694</commentid>
    <comment_count>0</comment_count>
    <who name="Fred Zemke">fred.zemke</who>
    <bug_when>2005-07-15 01:07:52 +0000</bug_when>
    <thetext>2.4.2 Item types
The following formal type notation is ambiguous: 
&quot;element nillable of type foo:bar&quot;.  Is this an element whose
name is nillable and type is foo:bar (and not nillable), or 
is this an element of unspecified name whose type is foo:bar
and nillable?  One easy way to fix this would be to move the
keyword &quot;nillable&quot; to a context where it cannot be mistaken for
a name, for example, following TypeReference rather than 
preceding it.  Thus rule [34 (Formal)] would be
TypeSpecifier ::= TypeReference Nillable?
Another way to fix it would be to say that ElementName must be
quoted, ie, change rule [9 (Formal)] to
ElementName ::= &apos;&quot;&apos; QName &apos;&quot;&apos;
Or, following my suggestion that the grammar should have
no defaults, make the element name mandatory (either a 
QName or an asterisk, say).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5040</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-20 21:58:48 +0000</bug_when>
    <thetext>That is a good catch.

We used to use an asterisk, so that might be the more natural
choice:

element * of type TypeName           (: a wildcard element :)
element * nillable of type TypeName  (: a nillable wildcard element :)
element nillable of type TypeName    (: an element with name &apos;nillable&apos; :)
element nillable nillable of type TypeName (: a nillable element with name
&apos;nillable :)

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5148</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2005-07-22 16:59:58 +0000</bug_when>
    <thetext>Fred,
On July 22, 2005, the Query Working Group decided to resolve this comment by 
accepting Jerome&apos;s proposal to use an asterisk as a &quot;wild card&quot; for an element 
name. Since this was one of your suggested solutions, we assume that you will 
find this resolution acceptable. If you have any further input on this issue, 
you may reopen the comment.
Regards,
Don Chamberlin</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>