[xsd-users] how do i use xse:refType with extra attribute?

Omkar Wagh owagh at tower-research.com
Thu May 31 13:29:30 EDT 2012


I have the following schema :-

<xs:complexType name="ref_T">
<xs:simpleContent>
<xs:extension base="xs:IDREF">
<xs:attribute name="extra_param" type="xs:integer" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>

<xs:complexType name="option_T">
<xs:choice>
<xs:element name="reference" type="ref_T" xse:refType="some_type_T" />
</xs:choice>
</xs:complexType>

This doesn't work as expected i.e. reference does not return some_type_T 
but returns ::xml_schema::idref

Any idea how to work around this?

Omkar



More information about the xsd-users mailing list