How to access the ID of a XSDComponent [message #604138] |
Thu, 02 April 2009 16:04 |
Joachim Messages: 16 Registered: July 2009 |
Junior Member |
|
|
The specification http://www.w3.org/TR/xmlschema-1/ describes a field
'id' at nearly each XSD Element, e.g. "xsd:attribute".
I don't find this field in the ECORE model xsd.ecore.
My problem is that I want to read and write this field.
I have this XSD excerpt:
<xsd:attribute name="B" id="r19">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0" />
<xsd:maxLength value="10" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
I don't know how to read the value of the 'id' through the
XSDAttributeDeclaration but succeed via the field 'element:DOMElement'.
I don't know how to set the value of 'id'. I tried with filling the
XSDResourceImpl:setIntrinsicIDToEObjectMap(), but this has no effect for
XSDResourceImpl:save().
This map is also not filled at load time.
Is this a bug or is there another proposed way to read and write 'id'?
Thanks,
Joachim
|
|
|
Powered by
FUDForum. Page generated in 0.01962 seconds