How to find out when an attribute is a ref or not? [message #583080] |
Thu, 22 January 2004 11:57 |
mike Messages: 35 Registered: July 2009 |
Member |
|
|
Hi,
I'm stuck with this problem : I'd like to find out when an attribute is a
reference (of type) or has real content ... tried everything I could
around isAttributeDeclarationReference() methods like but in vain ;-(
Any ideas?
Thanx,
--mike
<xs:simpleType name="st2">
<xs:restriction base="xs:string">
<xs:enumeration value="air"/>
<xs:enumeration value="land"/>
<xs:enumeration value="any"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="iti" type="st2" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>bla 111</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="utu">
<xs:complexType>
<xs:attribute name="att1" type="st2"/>
</xs:complexType>
</xs:element>
<xs:element name="loc">
<xs:complexType>
<xs:attribute name="at3">
<xs:simpleType name="st3">
<xs:restriction base="xs:string">
<xs:enumeration value="air"/>
<xs:enumeration value="land"/>
<xs:enumeration value="any"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
|
|
|
Powered by
FUDForum. Page generated in 0.03105 seconds