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:
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
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
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