W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

Xerces2 and DTD together with Schema

From: Monticelli, Giuseppe <Giuseppe.Monticelli@comdirect.de>
Date: Fri, 22 Feb 2002 10:00:41 -0500 (EST)
Message-ID: <3DE82677F9A4D411A9640008C75FA200021E1655@qbexgp17.de.comdirect.com>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Good mornig.

When I try to use an internal DTD declaration in my XML instance (to handle
entities), the Xerces 2 parser can't find the defined Schema. So all
elements defined in the Schema are invalid for him (while not in the DTD).
Here is the whole XML instance:


		<?xml version="1.0" encoding="ISO-8859-1"?>

		<!DOCTYPE system [
			<!ENTITY comhomeUsecases SYSTEM
"comhomeUsecases.xml">
			<!ENTITY comhomeNews SYSTEM "comhomeNews.xml">
			<!ENTITY comhomeHilfe SYSTEM "comhomeHilfe.xml">
			<!ENTITY general SYSTEM "general.xml">
			<!ENTITY service SYSTEM "service.xml">
	
			<!ENTITY nbsp "&#32;">
			<!ENTITY lt "&#38;#60;">
			<!ENTITY gt "&#62;">
			<!ENTITY amp "&#38;#38">
			<!ENTITY apos "&#39;">
			<!ENTITY quot "&#34;">
			<!ENTITY euro "&#8364;">
		]>

		<system name="transactions" 
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        		 xsi:noNamespaceSchemaLocation="languages.xsd">
	
			 &comhomeUsecases;
	 		 &comhomeNews;
	 		 &comhomeHilfe;
	
	 		 &general;
	 		 &service;

		</system>



I use JAXP 1.1 in Visual Age 3.5 for Java.

***The internal parser of Xml Spy 4.2 works wonderful, and doesn't know this
problem.***

Does anyone know a solution or have an explication?

Thank You in advance,

Giuseppe Monticelli, Quickborn (Germany)


---------------------------------------------------------------------------------
comdirect bank Aktiengesellschaft
Pascalkehre 15, 25451 Quickborn
(HRB 4889 Pinneberg)
Internet: www.comdirect.de

Vorstand: Dr. Andre Carls, Christian Jessen, Hans-Joachim Nitschke, Bernt Weber.
Vorsitzender des Aufsichtsrates: Klaus-Peter Mueller
Received on Saturday, 23 February 2002 05:17:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:27 GMT