<?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>4766</bug_id>
          
          <creation_ts>2007-06-26 16:30:02 +0000</creation_ts>
          <short_desc>[FS] 2.4.4 Example is backwards</short_desc>
          <delta_ts>2009-06-22 19:43:19 +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>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xquery-semantics/#sec_top_level_definitions</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Wagner">bungeman</reporter>
          <assigned_to name="Michael Dyck">jmdyck</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>15619</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Wagner">bungeman</who>
    <bug_when>2007-06-26 16:30:02 +0000</bug_when>
    <thetext>The first example in section 2.4.4



 &lt;complexType name=&quot;UKAddress&quot;&gt;
   &lt;complexContent&gt;
     &lt;extension base=&quot;ipo:Address&quot;&gt;
       &lt;sequence&gt;
         &lt;element name=&quot;postcode&quot; type=&quot;ipo:UKPostcode&quot;/&gt;
       &lt;/sequence&gt;
       &lt;attribute name=&quot;exportCode&quot; type=&quot;positiveInteger&quot; fixed=&quot;1&quot;/&gt;
     &lt;/extension&gt;
   &lt;/complexContent&gt;
 &lt;/complexType&gt;

is represented as follows

  define type UKAddress extends ipo:Address {
    attribute exportCode of type ipo:UKPostcode,
    element postcode of type positiveInteger
  };



has the types of &quot;exportCode&quot; and &quot;postcode&quot; backwards. This should be represented as 

  define type UKAddress extends ipo:Address {
    attribute exportCode of type positiveInteger,
    element postcode of type ipo:UKPostcode
  };</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15620</commentid>
    <comment_count>1</comment_count>
    <who name="Ben Wagner">bungeman</who>
    <bug_when>2007-06-26 16:38:33 +0000</bug_when>
    <thetext>It doesn&apos;t seem worth it to open a whole new bug for this, but in the same section the example

Example

A type declaration with one element name of type xs:string follows by one or more elements street of type xs:string.

  define type Address {
    element name of type xs:string,
    element street of type xs:string*
  }



should read as [&lt;existing&gt;/&lt;replace with&gt;]


Example

A type declaration with one element name of type xs:string follow[s/ed] by one or more elements street of type xs:string.

  define type Address {
    element name of type xs:string,
    element street of type xs:string[*/+]
  }
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15621</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Wagner">bungeman</who>
    <bug_when>2007-06-26 16:43:53 +0000</bug_when>
    <thetext>The example following the previous one


Example

A type declaration with complex content derived by extension

  define type USAddress extends Address {
    element zip name of type xs:integer
  }


seems to have an extraneous &quot;name&quot; and should read


Example

A type declaration with complex content derived by extension

  define type USAddress extends Address {
    element zip [name/] of type xs:integer
  }
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15625</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-06-26 21:01:15 +0000</bug_when>
    <thetext>I agree with all of your suggestions. The last one duplicates a comment at the end of Bug 3871, but the others are new.

These changes will eventually appear in the FS errata document, and also be reflected in subsequent versions of the FS document. Consequently, I am marking this issue as RESOLVED FIXED.

Please CLOSE the issue to indicate your acceptance of this resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17029</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-10-04 08:16:20 +0000</bug_when>
    <thetext>This issue has been entered as FS erratum E020. The suggested changes have been committed to the source files for the next edition of the FS document.

Please CLOSE the issue to indicate your acceptance of this resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25652</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-06-22 19:43:19 +0000</bug_when>
    <thetext>After two years with no reponse from the original reporter,
I am marking this issue CLOSED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>