I have some documents and schemas which worked fine in 2.4.0, but I'm
getting errors in 2.7.0, and I can't figure it out.  I have two (different)
schemas which start with the following lines:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; targetNamespace="
http://www.opnet.com/ns/NetDoctor"; elementFormDefault="qualified"
attributeFormDefault="unqualified">
    <xs:simpleType name="RuleID">
        <xs:restriction base="xs:token">
            <xs:maxLength value="22"/>
            <xs:pattern value="[0-9]*"/>
        </xs:restriction>
    </xs:simpleType>
...

The key point here is that they share the first type definition.  For one of
the schemas (Report_Template_v11.xsd), all of the files that reference it
validate fine.  For the other schema (Rule_v11.xsd), there is an error
reported every time a file referencing it is parsed:

Type not found in :RuleID

I'm certain that I've probably done something wrong, but I can't figure out
what is, and I'm perplexed because that type works in one schema, but
somehow is not recognized in another.  The referencing lines in each xml
file are:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ndr:Rule xmlns:ndr="http://www.opnet.com/ns/NetDoctor"; version="11"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opnet.com/ns/NetDoctor
/schemas/Rule?v11 <http://www.opnet.com/ns/NetDoctor/schemas/Rule?v11>">

and:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ndr:Template xmlns:ndr="http://www.opnet.com/ns/NetDoctor"; version="11"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opnet.com/ns/NetDoctor
/schemas/Report_Template?v11<http://www.opnet.com/ns/NetDoctor/schemas/Report_Template?v11>
">

I can send the files in their entirety if someone wants to look at them, but
I didn't want to attach them to the list.

Thanks in advance for your help.

--
Nick Bastin
OPNET Technologies

Reply via email to