newgal
11-07-2005, 07:48 PM
Hi
I don't know what happened with my first attempt to post this (got lost in cyberspace somewhere I suppose :() but here I go again. I am trying to use character entity references in a DTD file. Everything works just fine in IE but for some reason in Firefox(FF) I get an error message:
XML Parsing Error: undefined entity
Location: jour.xml
Line Number 466, Column 52:
Here are the entities:
<!ENTITY reg "®">
<!ENTITY copy "©">
<!ENTITY trade "™">
<!ENTITY apos "'">
Strangely enough, if I use the coding rather than the reference everything is fine in both browser. :confused: I have trouble keeping the entities straight so the references would make things faster. :o
Is this a FF problem? Have I done or not done something? :confused: Is there a fix? Or will I have to begin a cheat sheet for the entities? :thumbsup:
In trying to fix this I wonder if I need to put the DTD back in the XML file? Is that the only way FF will recognize the references? Can I only put the entities in the XML and have the DTD file also? I am so new at XML, XSLT, DTD, XSL-FO, and X-Path. I have had a wonderful and wonder-filled time learing to make all of these work properly. I am getting better but this not working is driving right up the wall. Figured it was time to look to those with more experience.
Thanks for your help!
cb -the newgal
I don't know what happened with my first attempt to post this (got lost in cyberspace somewhere I suppose :() but here I go again. I am trying to use character entity references in a DTD file. Everything works just fine in IE but for some reason in Firefox(FF) I get an error message:
XML Parsing Error: undefined entity
Location: jour.xml
Line Number 466, Column 52:
Here are the entities:
<!ENTITY reg "®">
<!ENTITY copy "©">
<!ENTITY trade "™">
<!ENTITY apos "'">
Strangely enough, if I use the coding rather than the reference everything is fine in both browser. :confused: I have trouble keeping the entities straight so the references would make things faster. :o
Is this a FF problem? Have I done or not done something? :confused: Is there a fix? Or will I have to begin a cheat sheet for the entities? :thumbsup:
In trying to fix this I wonder if I need to put the DTD back in the XML file? Is that the only way FF will recognize the references? Can I only put the entities in the XML and have the DTD file also? I am so new at XML, XSLT, DTD, XSL-FO, and X-Path. I have had a wonderful and wonder-filled time learing to make all of these work properly. I am getting better but this not working is driving right up the wall. Figured it was time to look to those with more experience.
Thanks for your help!
cb -the newgal