Page 1 of 1

Entity question (newbie!)

Posted: Wed Mar 30, 2005 10:31 am
by ian

I am parsing an xml file using php. All is ok but I need to use the &eacute character.

I define an entity using: <!ENTITY eacute "&#x000E9;" > and call it using: <sentence>nous &eacute;crit</sentence>

However the resulting html has nothing where the character should be. What am I doing wrong ? I'm pretty sure the php is ok.


Posted: Fri Apr 01, 2005 11:19 am
by george
Hi Ian,

From an XML point of view the entity declaration and use are ok. For instance

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE para [
<!ENTITY eacute "&#x000E9;" >

transformed with an empty stylesheet gives the expected e acute character in the output.

Best Regards,