W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

How do I make entity references

From: Michael Nielsen (Info) <min@dsb.dk>
Date: Mon, 30 Sep 2002 19:31:17 -0600
Message-Id: <5.1.0.14.1.20020930193114.05c30e60@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

Hi

Im using a Java API to parse my XML. We use special HTML escape characters 
for danish letters and that is giving me a headache. I cant use a DTD and a 
XML Schema at the same time.

Here is what I try to do:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE asset PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" 
"<http://legolas.dsb.dk:4520/mille/integration/xsd/xhtml-lat1.ent>http://legolas.dsb.dk:4520/mille/integration/xsd/xhtml-lat1.ent">

<asset category="g" description="Pressemeddelelse 15.05.1997#10" 
method="create" name="Pressemeddelelse 15.05.1997#10" 
type="Pressemeddelelse" 
xmlns:html="<http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="<http://legolas.dsb.dk:4520/futuretense_cs/Samples/integration/indholdstype.xsd>http://legolas.dsb.dk:4520/futuretense_cs/Samples/integration/indholdstype.xsd">

As you can see I use the DOCTYPE at first and then use a schema too using 
the xsi:noNamespaceSchemaLocation attribute to retrieve the schema.

I have turned on validation in the parser which fails as it takes onboard 
the DTD but not the schema. When I do not use the schema the XML Schema 
ref. works fine until it meats the &aelig; entity.

The question might be answered if anybody could tell me how to create an 
entity in my schema that maps &aelig; with &#230;

Thanx in advance!

Kind regards
Michael Nielsen
DSB Informatik
Kalvebod Brygge 32, 5 sal
Tlf: +45 33540086
Email: min@dsb.dk
Received on Monday, 30 September 2002 21:40:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT