Mismatch between example and text of Section 6.2?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mismatch between example and text of Section 6.2?

Rod Hughes

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