W3C home > Mailing lists > Public > public-xml-versioning@w3.org > March 2008

Mismatch between example and text of Section 6.2?

From: Rod Hughes <rod_hughes@yahoo.com>
Date: Fri, 7 Mar 2008 09:06:14 -0800 (PST)
To: public-xml-versioning@w3.org
Message-ID: <121463.70316.qm@web84001.mail.mud.yahoo.com>

In Section 6.2, there is the following example and text:

"Example 16: ComplexType level open content
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://www.example.org/ns/personName/1" 
      elementFormDefault="qualified" 
      xmlns:namens="http://www.example.org/ns/personName/1"> 
      
  <xs:complexType name="nameType">
    <xs:openContent mode="suffix">
           <xs:any namespace="##any" processContents="lax" 
                  minOccurs="0" maxOccurs="unbounded"/>
    </xs:openContent>
    
    <xs:sequence>
	  <xs:element name="given" type="xs:string"/>
      <xs:element name="family" type="xs:string"/>
    </xs:sequence>
    <xs:anyAttribute/>
  </xs:complexType>
      
   <xs:element name="personName" type="namens:nameType"/>
</xs:schema>
This content allows and validates any extensions before, between or after family. For the nameType type definition, it is very similar to Example #2."

Since the openContent mode="suffix", should the text say the following instead:

"This content allows and validates any extensions after family. For the nameType type definition, it is very similar to Example #2."

Regards,
Rod Hughes
Received on Friday, 7 March 2008 21:16:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:38:24 UTC