Hi,
I got a strange behaviour (FF 3) of entities in my xml files.
I have an element (see xml listing), where the attribute/content contains a latin1 entity (ö), but FF throws an error (entity not defined). the only workaround for that is to define the entities directly in the local xml DTD
anyone knows, how I can get the latin1 entities work in the external DTD?
thanks in advance
external DTD:
- <!DOCTYPE kbl [
-
// does not work
- <!ENTITY % HTMLlat1 PUBLIC
-
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
-
"xhtml-lat1.ent">
-
%HTMLlat1;
-
// works
-
<!ENTITY % relnavi SYSTEM "dtd.link.ent">
-
%relnavi;
-
<!ENTITY % dcmi SYSTEM "dtd.dublincore.ent">
-
%dcmi;
-
-
<!ELEMENT kbl (seite+)>
-
<!ATTLIST kbl
-
xmlns CDATA #REQUIRED
-
xmlns:dcterms CDATA #IMPLIED
-
xmlns:link CDATA #IMPLIED
-
>
-
-
<!-- further element declaration here -->
-
]>
xml file
- <?xml version="1.0" encoding="iso-8859-1" ?>
-
<!DOCTYPE kbl SYSTEM "struktur.dtd" [
-
// workaround for latin1 entities
-
<!ENTITY nbsp " ">
-
<!ENTITY Auml "Ä">
-
<!ENTITY Ouml "Ö">
-
<!ENTITY Uuml "Ü">
-
<!ENTITY auml "ä">
-
<!ENTITY ouml "ö">
-
<!ENTITY uuml "ü">
-
<!ENTITY szlig "ß">
-
<!-- other latin1 entities -->
-
]>
-
<kbl
-
xmlns="http://www.kulturbeutel-leipzig.net/XML/struktur"
-
xmlns:link="http://www.kulturbeutel-leipzig.net/XML/link"
-
xmlns:dcterms="http://purl.org/dc/terms/">
-
-
<!-- further elements here -->
-
// here the "ö" causes the problem
-
<link:author title="Sebastian Böhner">main.php?f=jeder#h06</link:author>
-
</kbl>