Entity question (newbie!)
This should cover W3C XML Schema, Relax NG and DTD related problems.
Entity question (newbie!)
Hello,
I am parsing an xml file using php. All is ok but I need to use the é character.
I define an entity using: <!ENTITY eacute "é" > and call it using: <sentence>nous é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.
I am parsing an xml file using php. All is ok but I need to use the é character.
I define an entity using: <!ENTITY eacute "é" > and call it using: <sentence>nous é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.
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 "é" >
]>
<para>
é
</para>
transformed with an empty stylesheet gives the expected e acute character in the output.
Best Regards,
George
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 "é" >
]>
<para>
é
</para>
transformed with an empty stylesheet gives the expected e acute character in the output.
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service