How do I define entities for the author mode ?
Questions about XML that are not covered by the other forums should go here.
How do I define entities for the author mode ?
I want to represent German umlauts as in HTML (ie: Ä ü etc.). How can I do this ?
When I add the <!ENTITY> element to an XML document after the XML prolog, it gets marked as error. I also do not understand, how exactly I should do this entity declaration, ie, how it looks like. Thanks.
When I add the <!ENTITY> element to an XML document after the XML prolog, it gets marked as error. I also do not understand, how exactly I should do this entity declaration, ie, how it looks like. Thanks.
Andreas
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
Just declare them as character entities:
You can also use the character codes directly:
Regards,
Sorin
Just declare them as character entities:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY Auml 'Ä'>
<!ENTITY uuml 'ü'>
]>
<root>
The Ä and ü characters.
</root>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<root>
The Ä and ü characters.
</root>
Sorin
Return to “General XML Questions”
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