- From: Volker Zink <Volker.Zink@porabo.ch>
- Date: Wed, 18 Aug 2004 10:01:44 +0200
- To: xmlschema-dev@w3.org
- Message-ID: <41230CE8.6020205@porabo.ch>
Hello,
when validating (strict) the included XML-document versus the included
schema i get following error (its the only error):
Invalid per cvc-complex-type.1.2.4:
element {grips://xml.recom-verlag.de/comm/plem}:fallImportExport not
allowed here (1) in element
{grips://xml.recom-verlag.de/comm/plem}:fallInterface, expecting
[{None}:fallImportExport]:
I think by setting the targetNamespace in the schema, the elements and
types are in the namespace "grips://xml.recom-verlag.de/comm/plem", so
why is the namespace 'None' expected (and whats the meaning of the
[]-brackets)?
Thanks
Volker Zink
----
<?xml version="1.0" encoding="UTF-8"?>
<fallInterface
xmlns="grips://xml.recom-verlag.de/comm/plem"
xmlns:plem="grips://xml.recom-verlag.de/comm/plem">
<fallImportExport>
<fall>
<nr>18217774</nr>
</fall>
<satzArt>DA</satzArt>
<patient>12347843</patient>
<nachname>Nuff</nachname>
<vorname>Christian</vorname>
<geburtsDatum>1952-04-04</geburtsDatum>
<strasse>Bahnhofstrasse 3</strasse>
<land>Schweiz</land>
<plz>8274</plz>
<ort>Tägerwilen</ort>
<behandlungsBereich>1A</behandlungsBereich>
<pflegeklasse>P</pflegeklasse>
<einDatumEff>2004-04-04</einDatumEff>
<einZeitEff>09:38:00</einZeitEff>
</fallImportExport>
</fallInterface>
---
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:plem="grips://xml.recom-verlag.de/comm/plem"
targetNamespace="grips://xml.recom-verlag.de/comm/plem">
<element name="fallInterface">
<complexType>
<sequence>
<element name="fallImportExport"
type="plem:FallImportExport" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
<complexType name="Fall">
<sequence>
<element name="nr" type="string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="FallImportExport">
<sequence>
<element name="fall" type="plem:Fall" minOccurs="1"
maxOccurs="1"/>
<element name="satzArt" type="string" minOccurs="1"
maxOccurs="1"/>
<element name="patient" type="string" minOccurs="1"
maxOccurs="1"/>
<element name="nachname" type="string" minOccurs="1"
maxOccurs="1"/>
<element name="vorname" type="string" minOccurs="0"
maxOccurs="1" />
<element name="geburtsDatum" type="date" minOccurs="0"
maxOccurs="1" />
<element name="strasse" type="string" minOccurs="0"
maxOccurs="1" />
<element name="postfach" type="string" minOccurs="0"
maxOccurs="1" />
<element name="land" type="string" minOccurs="0"
maxOccurs="1" />
<element name="plz" type="string" minOccurs="0" maxOccurs="1"/>
<element name="ort" type="string" minOccurs="1" maxOccurs="1"/>
<element name="telefon" type="string" minOccurs="0"
maxOccurs="1" />
<element name="funkTelefon" type="string" minOccurs="0"
maxOccurs="1" />
<element name="geschlecht" type="string" minOccurs="0"
maxOccurs="1" />
<element name="zivilstand" type="string" minOccurs="0"
maxOccurs="1" />
<element name="konfession" type="string" minOccurs="0"
maxOccurs="1" /> <element name="station"
type="string" minOccurs="0" maxOccurs="1" />
<element name="behandlungsBereich" type="string"
minOccurs="1" maxOccurs="1"/>
<element name="pflegeklasse" type="string" minOccurs="1"
maxOccurs="1"/>
<element name="einDatumEff" type="date" minOccurs="1"
maxOccurs="1"/>
<element name="einZeitEff" type="time" minOccurs="1"
maxOccurs="1"/>
<element name="ausDatumEff" type="date" minOccurs="0"
maxOccurs="1" />
<element name="ausZeitEff" type="time" minOccurs="0"
maxOccurs="1" />
</sequence>
</complexType>
</schema>
Received on Wednesday, 18 August 2004 08:03:26 UTC