tag insight does not work for imported schemas
Posted: Mon Oct 03, 2005 11:52 pm
I cannot get tag insight to work for imported schemas. Here is an example:
Both schemas reside in the same physical location:
-----------------------------
Master.xsd
-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://test.org/master"
xmlns:detail="http://test.org/detail"
targetNamespace="http://test.org/master">
<xs:import namespace="http://test.org/detail" schemaLocation="detail.xsd" />
<xs:element name="master" type="MasterCT"/>
<xs:complexType name="MasterCT">
<xs:sequence>
<xs:element name="desc" type="DescST" />
<xs:element ref="detail:item" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="DescST">
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:schema>
-----------------------------
Detail.xsd
-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://test.org/detail"
targetNamespace="http://test.org/detail">
<xs:element name="item" type="ItemST" />
<xs:simpleType name="ItemST">
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:schema>
When creating creating <xs:element ref="detail:item" />, insight does not work for the ref attribute. Only the "xs:.." namspace items show up. The "detail:.." namespace items do not show up.
I am using version 6.2 build 2005091711. It is a trial version.
Is this a bug or am I doing something wrong.
Thanks,
Duncan
Both schemas reside in the same physical location:
-----------------------------
Master.xsd
-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://test.org/master"
xmlns:detail="http://test.org/detail"
targetNamespace="http://test.org/master">
<xs:import namespace="http://test.org/detail" schemaLocation="detail.xsd" />
<xs:element name="master" type="MasterCT"/>
<xs:complexType name="MasterCT">
<xs:sequence>
<xs:element name="desc" type="DescST" />
<xs:element ref="detail:item" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="DescST">
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:schema>
-----------------------------
Detail.xsd
-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://test.org/detail"
targetNamespace="http://test.org/detail">
<xs:element name="item" type="ItemST" />
<xs:simpleType name="ItemST">
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:schema>
When creating creating <xs:element ref="detail:item" />, insight does not work for the ref attribute. Only the "xs:.." namspace items show up. The "detail:.." namespace items do not show up.
I am using version 6.2 build 2005091711. It is a trial version.
Is this a bug or am I doing something wrong.
Thanks,
Duncan