<?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>1640</bug_id>
          
          <creation_ts>2005-07-15 21:58:53 +0000</creation_ts>
          <short_desc>[FS] editorial: 4.7.1.1 Attributes</short_desc>
          <delta_ts>2007-01-16 17:30: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>All</rep_platform>
          <op_sys>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</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>4721</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-15 21:58:53 +0000</bug_when>
    <thetext>4.7.1.1 Attributes

&quot;Like literal XML element constructors, literal XML attribute constructors
...&quot;
    s/literal XML/direct/g ?

(grammar)
    It would be nice if the relevant productions were moved from 4.7.1 to
    this section.
        DirAttributeList
        DirAttributeValue
        QuotAttrValueContent
        AposAttrValueContent
        QuotAttrContentChar
        AposAttrContentChar
        EscapeQuot
        EscapeApos

Notation
&quot;for the normalization of the content of direct attribute constructors.&quot;
    Delete &quot;the content of&quot;. Two of them are only concerned with content,
    but []_Attribute is concerned with larger things.

Norm

&quot;The normalization rules for attributes ignore namespace-declaration
attributes&quot;
    Maybe change &quot;for attributes&quot; to &quot;in this section&quot;.

&quot;An AttributeList&quot;
    Change to &quot;A DirAttributeList&quot;.

Norm / rule 1 / LHS
    Insert an ellipsis.

    &apos;Attributen&apos; is preceded by two double-quotes. Delete one.

Norm / rule (1|2|3)
AttributeValue
    Use of the Formal symbol AttributeValue is completely inappropriate.
    Change
        &apos;&quot;&apos; AttributeValue &apos;&quot;&apos;
    to
        DirAttributeValue
Norm / rule 3 / RHS
    Change &apos;AttributeValue&apos; to &apos;DirAttributeValue&apos;.

Norm / rule 3
    Change [[ Prefix:LocalPart ]]_Expr to just Prefix:LocalPart.
    (see 4.7.1 / Norm / rule (3|4) in Bug 1627)

&quot;attribute-content unit&quot;
    There is no definition for this term.

&quot;because the rule ... are applied&quot;
    s/are/is/

Norm / rule (4|5)
&quot;AttributeValueContent&quot;
    The symbol &apos;AttributeValueContent&apos; is not defined.  At least change
    it to &apos;AttributeContentUnit&apos; to be consistent with the prose.

Norm / rule (4|5)
[[]]_AttributeContent-unit
    (Similar comments as for _ElementContent-unit in Bug 1627.)

    This construct only appears on the LHS of mapping rules, so there&apos;s
    nothing to invoke it.  Probably the RHS of rule 3 is supposed to
    invoke it rather than [[]]_AttributeContent.

    The subscript-names &apos;AttributeContent&apos; and &apos;AttributeContent-unit&apos;
    seem to be assigned each other&apos;s semantics. That is, the &apos;-unit&apos;
    subscript should be concerned with normalizing a single unit, and the
    other subscript with normalizing the whole content.

    And &apos;Unit&apos; would match your naming convention better than &apos;-unit&apos;.

Norm / rule 5 / LHS
&quot;AttributeValueContent1 ..., AttributeValueContentn
    Delete comma.

Norm / rule 5 / RHS
&quot;fs:item-sequence-to-untypedAtomic( ... )&quot;
    This function takes a single argument (of type item*), so there should
    be an extra pair of parentheses around what currently appear to be its
    args.

&quot;by normalizing each individual expression in its expression sequence and
then construct a sequence&quot;
    s/construct/constructing/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4728</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-15 23:09:54 +0000</bug_when>
    <thetext>(Also...)

Norm / rule 1
&quot;AttributeValue0&quot;
    The subscript should be &quot;1&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9250</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-04-15 22:51:04 +0000</bug_when>
    <thetext>All comments processed as suggested except for #2 to keep the grammar locations in XQuery 1.0 and FS consistent.

Some of the main changes include:

* Added grammar productions for &apos;AttributeContentUnit&apos;
* Switched the role of []AttributeContent and []AttributeContentUnit

- Jerome
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12211</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-09-29 21:44:04 +0000</bug_when>
    <thetext>I said:
&gt;
&gt; &quot;An AttributeList&quot;
&gt;     Change to &quot;A DirAttributeList&quot;.

It&apos;s now &quot;An DirAttributeList&quot;, so you still need to change &quot;An&quot; to &quot;A&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12893</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-11-09 22:40:05 +0000</bug_when>
    <thetext>Fixed.
- Jerome
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>