Re: Feature request - anonymous simplecontent type definition within complex type definition

> At present, when defining complex types with simple content,
> the schema REC requires a separate named type definition as the
> basis for the complex type definition

Maybe I'm missing something, but can't you avoid this by doing something 
like this

  <xs:element name="foo">
    <xs:complexType>
      <xs:simpleContent>
        <xs:restriction base="xs:anyType">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="8"/>
            </xs:restriction>
          </xs:simpleType>
          <xs:attribute name="bar"/>
        </xs:restriction>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>

?

James

Received on Thursday, 27 June 2002 22:42:30 UTC