Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zaphod on August 15, 2005, 03:33:12 pm
-
Hi,
I'm trying to generate a XSD schema that will restrict the
syntax of character data that's allowed in the content
of an element. I've found that the following will work in
pure XSchema syntax; anyone have any idea how to model this in EA?
<xs:simpleType name="scriptVariable">
<xs:restriction base="xs:string">
<xs:pattern value="([A-Za-z])([A-Za-z0-9]|_|$)*"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="script">
<xs:simpleContent>
<xs:extension base="sce:scriptVariable"/>
</xs:simpleContent>
</xs:complexType>
Thanks in advance for any advice or help...
Z.