L
Luigi
Hi all!
I received an XML Schema in order to create some documents, but inside
it there is a definition that looks mistaken:
<!-- INFO is a name-value pair -->
<xs:element name="INFO">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="xs:string">
<xs:attribute name="ID" type="xs:ID"/>
<xs:attribute name="name" type="xs:token" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
Do you agree?
If like this, what's you opinion on the right definition?
Thank you!
Luigi
I received an XML Schema in order to create some documents, but inside
it there is a definition that looks mistaken:
<!-- INFO is a name-value pair -->
<xs:element name="INFO">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="xs:string">
<xs:attribute name="ID" type="xs:ID"/>
<xs:attribute name="name" type="xs:token" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
Do you agree?
If like this, what's you opinion on the right definition?
Thank you!
Luigi