Entity question (newbie!)

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

Entity question (newbie!)

Post by ian » Wed Mar 30, 2005 10:31 am


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.


Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Fri Apr 01, 2005 11:19 am

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,

Post Reply