I got tired of looking up the special characters for HTML and more importantly XSLT, so I decided to put them here for easy reference.
In HTML, you can use use specific code positions to display special characters. For example is equivalent to placing a space in your text, in other words, a non-breaking space; and © is the equivalent of placing a copyright sign on the page, i.e., ©
However, in XSLT you are not allowed to use these types of characters, you need to use the ISO-8859-1 character set. The biggest difference being, these characters have a hash mark just after the & which makes the XSLT processor happy. So, instead of inserting as a non breaking space, you'd insert   and instead of © you'd use ©
Note: these characters are not limited in use to XSLT pages, they are just as acceptable in an HTML file as demonstrated in the "Visual" column below.
| Visual | Reference | Value |
|---|---|---|
| -  | Unused | |
| 	 | Horizontal tab | |
| | Line feed | |
|  -  | Unused | |
| | Carriage Return | |
|  -  | Unused | |
|   | Space | |
| ! | ! | Exclamation mark |
| " | " | Quotation mark |
| # | # | Number sign |
| $ | $ | Dollar sign |
| % | % | Percent sign |
| & | & | Ampersand |
| ' | ' | Apostrophe |
| ( | ( | Left parenthesis |
| ) | ) | Right parenthesis |
| * | * | Asterisk |
| + | + | Plus sign |
| , | , | Comma |
| - | - | Hyphen |
| . | . | Period (fullstop) |
| / | / | Solidus (slash) |
| 0 - 9 | 0 - 9 | Digits 0-9 |
| : | : | Colon |
| ; | ; | Semi-colon |
| < | < | Less than |
| = | = | Equals sign |
| > | > | Greater than |
| ? | ? | Question mark |
| @ | @ | Commercial at |
| A - Z | A - Z | Letters A-Z |
| [ | [ | Left square bracket |
| \ | \ | Reverse solidus (backslash) |
| ] | ] | Right square bracket |
| ^ | ^ | Caret |
| _ | _ | Horizontal bar (underscore) |
| ` | ` | Acute accent |
| a - z | a - z | Letters a-z |
| { | { | Left curly brace |
| | | | | Vertical bar |
| } | } | Right curly brace |
| ~ | ~ | Tilde |
| - |  - Ÿ | Unused |
|   | Non-breaking Space | |
| ¡ | ¡ | Inverted exclamation |
| ¢ | ¢ | Cent sign |
| £ | £ | Pound sterling |
| ¤ | ¤ | General currency sign |
| ¥ | ¥ | Yen sign |
| ¦ | ¦ | Broken vertical bar |
| § | § | Section sign |
| ¨ | ¨ | Umlaut (dieresis) |
| © | © | Copyright |
| ª | ª | Feminine ordinal |
| « | « | Left angle quote, guillemotleft |
| ¬ | ¬ | Not sign |
| | ­ | Soft hyphen |
| ® | ® | Registered trademark |
| ¯ | ¯ | Macron accent |
| ° | ° | Degree sign |
| ± | ± | Plus or minus |
| ² | ² | Superscript two |
| ³ | ³ | Superscript three |
| ´ | ´ | Acute accent |
| µ | µ | Micro sign |
| ¶ | ¶ | Paragraph sign |
| · | · | Middle dot |
| ¸ | ¸ | Cedilla |
| ¹ | ¹ | Superscript one |
| º | º | Masculine ordinal |
| » | » | Right angle quote, guillemotright |
| ¼ | ¼ | Fraction one-fourth |
| ½ | ½ | Fraction one-half |
| ¾ | ¾ | Fraction three-fourths |
| ¿ | ¿ | Inverted question mark |
| À | À | Capital A, grave accent |
| Á | Á | Capital A, acute accent |
| Â | Â | Capital A, circumflex accent |
| Ã | Ã | Capital A, tilde |
| Ä | Ä | Capital A, dieresis or umlaut mark |
| Å | Å | Capital A, ring |
| Æ | Æ | Capital AE dipthong (ligature) |
| Ç | Ç | Capital C, cedilla |
| È | È | Capital E, grave accent |
| É | É | Capital E, acute accent |
| Ê | Ê | Capital E, circumflex accent |
| Ë | Ë | Capital E, dieresis or umlaut mark |
| Ì | Ì | Capital I, grave accent |
| Í | Í | Capital I, acute accent |
| Î | Î | Capital I, circumflex accent |
| Ï | Ï | Capital I, dieresis or umlaut mark |
| Ð | Ð | Capital Eth, Icelandic |
| Ñ | Ñ | Capital N, tilde |
| Ò | Ò | Capital O, grave accent |
| Ó | Ó | Capital O, acute accent |
| Ô | Ô | Capital O, circumflex accent |
| Õ | Õ | Capital O, tilde |
| Ö | Ö | Capital O, dieresis or umlaut mark |
| × | × | Multiply sign |
| Ø | Ø | Capital O, slash |
| Ù | Ù | Capital U, grave accent |
| Ú | Ú | Capital U, acute accent |
| Û | Û | Capital U, circumflex accent |
| Ü | Ü | Capital U, dieresis or umlaut mark |
| Ý | Ý | Capital Y, acute accent |
| Þ | Þ | Capital THORN, Icelandic |
| ß | ß | Small sharp s, German (sz ligature) |
| à | à | Small a, grave accent |
| á | á | Small a, acute accent |
| â | â | Small a, circumflex accent |
| ã | ã | Small a, tilde |
| ä | ä | Small a, dieresis or umlaut mark |
| å | å | Small a, ring |
| æ | æ | Small ae dipthong (ligature) |
| ç | ç | Small c, cedilla |
| è | è | Small e, grave accent |
| é | é | Small e, acute accent |
| ê | ê | Small e, circumflex accent |
| ë | ë | Small e, dieresis or umlaut mark |
| ì | ì | Small i, grave accent |
| í | í | Small i, acute accent |
| î | î | Small i, circumflex accent |
| ï | ï | Small i, dieresis or umlaut mark |
| ð | ð | Small eth, Icelandic |
| ñ | ñ | Small n, tilde |
| ò | ò | Small o, grave accent |
| ó | ó | Small o, acute accent |
| ô | ô | Small o, circumflex accent |
| õ | õ | Small o, tilde |
| ö | ö | Small o, dieresis or umlaut mark |
| ÷ | ÷ | Division sign |
| ø | ø | Small o, slash |
| ù | ù | Small u, grave accent |
| ú | ú | Small u, acute accent |
| û | û | Small u, circumflex accent |
| ü | ü | Small u, dieresis or umlaut mark |
| ý | ý | Small y, acute accent |
| þ | þ | Small thorn, Icelandic |
| ÿ | ÿ | Small y, dieresis or umlaut mark |
Keywords: XSLT, HTML Coded Character, ISO-8859-1
All of the code and examples presented in my playground are either modifications of open source code or original works of Kindler Chase DBA Roubaix Interactive or a combination of both and are Copyright protected unless noted otherwise. You may not use the code here without asking first. OK, so I know you're not going to ask, so how about a nice thank you for playing gift?
• got css? • got xhtml? • trump salad?
This page last updated on 5/25/2020