Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ENTITY in external DTD

Status
Not open for further replies.

venedos

Technical User
Oct 25, 2006
8
0
0
CZ
Hi you guys, sry for the cheesy question, but I've taken on XML just recently. My prob is that I am trying to use entities to be evaluated as a string by a parser:

Code:
<?xml version='1.0' encoding='windows-1250'?>
<!DOCTYPE Sablona [
<!ELEMENT vypis (#PCDATA)>
<!ENTITY someent "zyxwvu">
                  ]>
<?xml-stylesheet type='text/css' href='pivo.css'?>
<Sablona>
<vypis>
&someent;
someotherstring
</vypis>
</Sablona>

This works perfecty, but I'd like DTD to be read from an external file "popiska.dtd" . But when I replace the above doctype part by

Code:
<!DOCTYPE Sablona SYSTEM "popiska.dtd">

Firefox will display the "Undefined entity &someent;" error
and Opera will not display the string defined by the entity (only the someotherstring). However it appears to be evaluated ok in the IE.

Can anybody give me an advice how to make it work even in Firefox and Opera. Thx beforehand
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top