tag insight does not work for imported schemas

This should cover W3C XML Schema, Relax NG and DTD related problems.
duncan@fish5.com
Posts: 2
Joined: Thu May 22, 2003 10:12 pm

tag insight does not work for imported schemas

Post by duncan@fish5.com »

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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Please see http://www.oxygenxml.com/forum/ftopic1297.html.

Regards,
Sorin
Post Reply