Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Schema diagnostics
Schema diagnostics [message #586372] Fri, 30 April 2004 10:15
Mike Lischke is currently offline Mike LischkeFriend
Messages: 78
Registered: July 2009
Member
Hi group,

I'm trying currently to get diagnostics information as described in the
FAQs but somehow I've got the feeling they do not work as expected. What I
have is an xsd file, which includes 3 other schemas. I made one of the
references invalid (non-existing file) and expected to find an entry
telling me about a missing reference but the diagnostic information from
my main schema is empty.

Additionally, XML Spy reports an error in one of my included schemas,
which I would expect to be reported too, but which also not appears.

Btw., may I ask an slightly off-topic question? Why does XML Spy consider
the following text invalid?

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://msgax1i.msg.de/afis/odie"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://msgax1i.msg.de/afis"
xmlns:io="http://msgax1i.msg.de/afis/io"
xmlns:layout="http://msgax1i.msg.de/afis/layout"
xmlns:local="http://msgax1i.msg.de/afis/localization"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="de">
Copyright 2004 msg systems ag. All rights reserved.
</xs:documentation>
</xs:annotation>
<xs:element name="td" type="tdType"/>
<xs:complexType name="tdType">
<xs:attribute name="colspan" type="xs:positiveInteger" default="1"/>
</xs:complexType>
<xs:element name="table" type="tableType" substitutionGroup="td"/>
<xs:complexType name="tableType">
<xs:complexContent>
=====> Error message here: undefined value for 'base' encountered.
=====> tdType is defined just a couple lines above.
<xs:extension base="tdType">
<xs:sequence>
<xs:element ref="tr" maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="tr" type="trType"/>
<xs:complexType name="trType">
<xs:sequence>
<xs:element ref="td" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

For me it looks ok, however I'm a beginner with XML Schemas so I likely
overlooked an important part.

Mike
--
www.soft-gems.net
Previous Topic:Annotation appinfo troubles
Next Topic:Namespaces
Goto Forum:
  


Current Time: Mon Oct 19 16:38:27 GMT 2020

Powered by FUDForum. Page generated in 0.01520 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top