Quote:
Originally Posted by Moe The Cat
what are the advantages of using entities vs. characters?
|
Mostly that named entities are easier for people to read than numeric entities or even the character itself. & nbsp ; compared to & #160 ; or ' ' for a non-breaking space. However in epub3, there are only 5 permitted named entities which are inherited from XHTML5 which inherited them from XML ( & amp;, & quot;, & apos;, & lt;, & gt; ). You can define other named entities but you would need to add these definitions to each XHTML file unlike epub2 where you could add a DTD in the DOCTYPE. Compare the DOCTYPE in a epub3 ( <!DOCTYPE html> ) while in a epub2 ( <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ).