473,672 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

entities in DTD

Dormilich
8,658 Recognized Expert Moderator Expert
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:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE kbl [
  2. // does not work
  3. <!ENTITY % HTMLlat1 PUBLIC
  4.    "-//W3C//ENTITIES Latin 1 for XHTML//EN"
  5.    "xhtml-lat1.ent">
  6. %HTMLlat1;
  7. // works
  8. <!ENTITY % relnavi SYSTEM "dtd.link.ent">
  9. %relnavi;
  10. <!ENTITY % dcmi SYSTEM "dtd.dublincore.ent">
  11. %dcmi;
  12.  
  13. <!ELEMENT kbl           (seite+)>
  14. <!ATTLIST kbl
  15.     xmlns               CDATA   #REQUIRED
  16.     xmlns:dcterms       CDATA   #IMPLIED
  17.     xmlns:link          CDATA   #IMPLIED
  18. >
  19.  
  20. <!-- further element declaration here -->
  21. ]>
xml file
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="iso-8859-1" ?>
  2. <!DOCTYPE kbl SYSTEM "struktur.dtd" [
  3. // workaround for latin1 entities
  4. <!ENTITY nbsp   " "> 
  5. <!ENTITY Auml   "Ä"> 
  6. <!ENTITY Ouml   "Ö"> 
  7. <!ENTITY Uuml   "Ü"> 
  8. <!ENTITY auml   "ä"> 
  9. <!ENTITY ouml   "ö"> 
  10. <!ENTITY uuml   "ü"> 
  11. <!ENTITY szlig   "ß">
  12. <!-- other latin1 entities -->
  13. ]>
  14. <kbl
  15.     xmlns="http://www.kulturbeutel-leipzig.net/XML/struktur"
  16.     xmlns:link="http://www.kulturbeutel-leipzig.net/XML/link"
  17.     xmlns:dcterms="http://purl.org/dc/terms/">
  18.  
  19. <!-- further elements here -->
  20. // here the "&ouml;" causes the problem
  21.     <link:author title="Sebastian B&ouml;hner">main.php?f=jeder#h06</link:author>
  22. </kbl>
Oct 3 '08 #1
1 2739
drhowarddrfine
7,435 Recognized Expert Expert
This may be old (2006) but Firefox doesn't read external xml entities:
http://www-128.ibm.com/developerwork...x.html?ca=drs-
But they offer a solution.
Oct 3 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
4368
by: Kunle Odutola | last post by:
I have a database that tracks players for children's sports clubs. I have included representative DDL for this database at the end of this post. A single instance of this database supports multiple clubs. I would like to add support for letting each club define and store custom information about arbitrary entities. Basically, allows the clubs to define custom entities (i.e tables) and associated custom attributes (i.e. fields) that may be...
1
1262
by: sylvain.loiseau | last post by:
It's not so clear for me, in the xml spec, which is the required behaviour of an XML processor for entities : - The characters entities (predefined, decimal and hexadecimal) must be expended and treated as characters content ("Numeric character references MAY also be used; they are expanded immediately when recognized and MUST be treated as character data") - but what for the other entities (excluding parameters and unparsed entities...
2
5977
by: Nick Craig-Wood | last post by:
I'm using xml.minidom to parse some of our XML files. Some of these have entities like "&deg;" in which aren't understood by xml.minidom. These give this error. xml.parsers.expat.ExpatError: undefined entity: line 12, column 1 Does anyone know how to add entities when using xml.minidom? I've spend some time searching the docs/code/google but I haven't found the answer to this question!
3
2562
by: Michel de Becdelièvre | last post by:
I have some *performance* trouble reading MathML files in my application (in ASP.Net). - I have small MathML files (2-3k) as input - as (almost) all MathML files these use entities. I have no way to restrict the entities used. - to read an XML file entities into a document, you need to use a DTD, or you get an exception (any other way ?) - The MathML DTD is HUGE (2400+ Entities, ~300k of files), loading it in a document is a big CPU...
1
2014
by: David Bertoni | last post by:
Hi all, I'm trying to resolve what appears to me an inconsistency in the XML 1.0 recommendation involving entities encoding in UTF-16 and the requirement for a byte order mark. Section 4.3.3 has the following text: http://www.w3.org/TR/REC-xml/#charencoding
2
2798
by: Frantic | last post by:
I'm working on a list of japaneese entities that contain the entity, the unicode hexadecimal code and the xml/sgml entity used for that entity. A unicode document is read into the program, then the program sorts out every doublet and the hexadecimal unicode code is extracted, but I dont know a way to find the xml or sgml-entity equivalent to the unicode code. Anyone who could give me a pointer? Best regards
6
10143
by: clintonG | last post by:
Can anybody make sense of this crazy and inconsistent results? // IE7 Feed Reading View disabled displays this raw XML <?xml version="1.0" encoding="utf-8" ?> <!-- AT&T HTML entities & XML <elementsare displayed --> <rss version="2.0"> <channel> <title>AT&T HTML entities & XML <elementsare displayed</title> .... <description>
3
2063
by: bsagert | last post by:
Some web feeds use decimal character entities that seem to confuse Python (or me). For example, the string "doesn't" may be coded as "doesn’t" which should produce a right leaning apostrophe. Python hates decimal entities beyond 128 so it chokes unless you do something like string.encode('utf-8'). Even then, what should have been a right-leaning apostrophe ends up as "’". The following script does just that. Look for the string "The...
7
2560
by: tempest | last post by:
Hi all. This is a rather long posting but I have some questions concerning the usage of character entities in XML documents and PCI security compliance. The company I work for is using a third party ecommerce service for hosting its online store. A few months ago this third party commerce site began using PGP file encryption on XML files (e.g. web orders) transferred to us as part of the ongoing PCI security compliance.
0
8486
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8828
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8608
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6238
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.