finding elements or attributes based on Types [message #583013] |
Wed, 21 January 2004 16:16 |
mike Messages: 35 Registered: July 2009 |
Member |
|
|
Hi,
I'm trying to find out how to retrieve every elements or attributes that
are based on a global simpleTypeDefinition. I've tried with
findElementsUsingType but with no luck ;-(
For exemple, I'd like something that'd tell me that the simpleType
'atacharacType' is used in 'titi' (and others ...). 'titi' being an
attribute or an element.
<xs:simpleType name="atacharacType">
<xs:restriction base="xs:string">
<xs:pattern value="\d\d(-\d\d(-\d\d)?)?"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="ata">
<xs:complexType>
<xs:sequence>
<xs:element name="titi" type="atacharacType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>bla bla bla</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
thanx,
--mike
|
|
|
Powered by
FUDForum. Page generated in 0.02742 seconds