<?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>1615</bug_id>
          
          <creation_ts>2005-07-15 00:17:46 +0000</creation_ts>
          <short_desc>what types are permitted in document { Type }?</short_desc>
          <delta_ts>2005-09-06 13:01:08 +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>WONTFIX</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>4691</commentid>
    <comment_count>0</comment_count>
    <who name="Fred Zemke">fred.zemke</who>
    <bug_when>2005-07-15 00:17:46 +0000</bug_when>
    <thetext>2.4.2 Item types
Rule [49 (formal)] says 
DocumentType ::= &quot;document&quot; ( &quot;{ Type? &quot;}&quot; )?

Do you really mean Type, or do you mean ElementType?
For example, I toyed with &quot;document {empty}&quot; as a type notation
denoting a document node with no children, or perhaps no 
elements as children.  However, I could not find any rules 
anywhere to define the meaning of this notation.  The closest
appears to be 8.2.3.1.2 &quot;Kind tests&quot;, but this only defines the
semantics of normalizing a DocumentTest, and a DocumentTest only
permits an ElementTest as its argument.  I also toyed with
document { element p:o ? }, document { element p:o * }
and document { element p:o + } to mean a document node, all of whose
child elements are of type p:o, with different quantifiers 
specifying the number of occurrences of such child elements.
Another notation I considered was document { text } to mean a 
document node whose only child is a text node.
I could not find rules to specify the semantics of these type
notations either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5054</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-20 23:53:18 +0000</bug_when>
    <thetext>The data model allows document nodes containing several element nodes, text,
PI&apos;s and comments. So the intent is indeed to have document nodes accepting a
general type, with the restriction that there can never be attributes or
document nodes. This would be quite heavy to impose that restriction using the
grammar, but none of the inference rules can result in such a case so I think we
are ok on this.

The comment on the &apos;meaning of types&apos; is more general and recorded as Bug 1616.

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5182</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-22 22:50:51 +0000</bug_when>
    <thetext>The working group believes the comment is addressed by the response in
additional comment #1, and that there is no change required to the document.

- Jerome Simeon
On behalf of the XML Query and XSL WGs

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>