Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to find out when an attribute is a ref or not?
How to find out when an attribute is a ref or not? [message #583080] Thu, 22 January 2004 11:57
mike is currently offline 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>
Previous Topic:Creating XSDAnnotations
Next Topic:finding elements or attributes based on Types
Goto Forum:
  


Current Time: Thu Oct 23 02:31:57 GMT 2014

Powered by FUDForum. Page generated in 0.01538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software