![]() ![]() Since you mentioned –, though, you may want an en dash instead of em dash. You could also have entered the character number in decimal. Thus, if you had used -, your document would have contained an em dash. And Unicode hex 2014 is the Unicode number for an em dash. The x in the second one indicates a hexadecimal number. The number in the first one is the decimal number 2014. Note that an entity used in a DTD an be declared in an external entity such as a separate file that itself declares other entities.Īs far as ߞ, I suspect that the character reference you wanted is –. The first thing to check when an entity reference such as – fails is that the entity is declared in the DTD. References to any other entity can only be used in a document that includes a DTD and then the DTD must declare the entity. These pre-defined entities are amp, lt, gt, quot, and apos. They provide an easy method of entering data characters that would otherwise be interpreted as markup. ![]() Five entities for special characters are built into XML. SGML and XML entity references can be used for a variety of purposes including special characters. You referred to "character references" in the first message in this thread, but the examples you mention include:Īctually, only the last one is a character reference (the # is important). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |