Possibility to define a data type for element that are mixed

Here is a section of my xml

<xsd:element name="GROUP">

<xsd:complexType>

<xsd:sequence>

<xsd:element ref="GROUP_TAG" minOccurs="0"/>

<xsd:element ref="DESCRIPTION" minOccurs="0"/>

</xsd:sequence>

<xsd:attributeGroup ref="ENTITY_ATTRIBUTE"/>

</xsd:complexType>

</xsd:element>

I've tried to declare the GROUP node as mixed and give him a data type, but 
it didn't work. See the following lines of codes.

<xsd:element name="GROUP">

<xsd:complexType mixed="true">

<xsd:complexContent>

<xsd:extension base="stNotEmptyTo255Length">

<xsd:sequence>

<xsd:element ref="GROUP_TAG" minOccurs="0"/>

<xsd:element ref="DESCRIPTION" minOccurs="0"/>

</xsd:sequence>

<xsd:attributeGroup ref="ENTITY_ATTRIBUTE"/>

</xsd:extension>

</xsd:complexContent>

</xsd:complexType>

</xsd:element>



I would like to be able to define the GROUP node as a mixed element with a 
string datatype with a minlength=0 and a maxLength=255. This will be really 
helpfull.

I've worked around it with other elements that do not contain a sequence, 
but I would like to be able to do it with an element that does contain a 
sequence.

<xsd:element name="GENERAL_LEASE">

<xsd:complexType mixed="true">

<xsd:simpleContent>

<xsd:extension base="stNotEmptyTo255Length">

<xsd:attributeGroup ref="ENTITY_VALUE_ATTRIBUTE"/>

</xsd:extension>

</xsd:simpleContent>

</xsd:complexType>

</xsd:element>



<xsd:simpleType name="stNotEmptyTo255Length">

<xsd:annotation>

<xsd:documentation>String with minlength = 1 and maxLength = 
255</xsd:documentation>

</xsd:annotation>

<xsd:restriction base="xsd:string">

<xsd:minLength value="1"/>

<xsd:maxLength value="255"/>

</xsd:restriction>

</xsd:simpleType>



If you need clarification or have any questions or comments, don't hesitate 
to contact me

thanks

Yves Langevin
Software Engineer, EAI
Provance Technologies Inc. - ISO 9001 Registered
<mailto:ylangevin@provance.com>mailto:ylangevin@provance.com
www.provance.com

IMPORTANT NOTICE: This information is the property of Provance Technologies 
Inc. and may contain data that is confidential or proprietary. If you have 
received this in error, please notify the originator immediately. Your 
assistance is appreciated. - Provance CONFIDENTIAL AND PRIVILEGED

Received on Monday, 16 September 2002 13:11:39 UTC