Entity question (newbie!)

This should cover W3C XML Schema, Relax NG and DTD related problems.
ian
Posts: 5
Joined: Fri Mar 25, 2005 2:04 pm

Entity question (newbie!)

Post by ian »

Hello,

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.

Thanks.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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 [
<!ELEMENT para (#PCDATA)>
<!ENTITY eacute "&#x000E9;" >
]>
<para>
&eacute;
</para>


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

Best Regards,
George
Post Reply