Hello Maik,

Since an XML Schema is just an XML document, you can use entities in a
Schema the same fashion that you would use them in a plain XML
document.  For example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsd:schema [ 
<!ENTITY str "xsd:string">
]>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
            targetNamespace="http://www.test.org";
            xmlns="http://www.test.org";
            elementFormDefault="qualified">

    <xsd:element name="test">
        <xsd:complexType>
            <xsd:choice>
                <xsd:element name="a" type="&str;"/>
                <xsd:element name="b" type="&str;"/>
            </xsd:choice>
        </xsd:complexType>
    </xsd:element>

</xsd:schema>

Here I have created an entity, str.  Its replacement text is
xsd:string.  I used this entity in defining the type for element a, and
b.

/Roger


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to