"Elements" view not showing all available valid elements.
Posted: Tue Apr 10, 2012 6:19 pm
I seem to have an issue whereby the 'Elements' view is not showing an element when it should show it. I have the following schema in place:
When the caret is placed inside a description tag, then the measurement element should appear in the Elements view - see the image:

Is there something wrong with my schema? or my XML? or something else?
Code: Select all
<xsd:element name="description">
<xsd:complexType mixed="true">
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="measurement"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="measurement">
<xsd:simpleContent>
<xsd:extension base="xsd:decimal">
<xsd:attribute name="type" type="measurement-type" use="required"/>
<xsd:attribute name="display-unit" type="xsd:boolean"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

Is there something wrong with my schema? or my XML? or something else?