[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to get in HTML
On 7 Jan 2004 at 13:37, Jiang, Peiyun wrote: > I wonder how XSLT treats these entites. Can you give me some general > information on this? An XSLT stylesheet is an XML document, so only XML entities ("<" for "<", ">" for ">", "&" for "&", """ for a double quotation mark, and "'" for a single quotation mark a.k.a. apostrophe) can be used in XSLT stylesheets. That's why you need to escape the ampersand in the HTML entity " " with "disable-output- escaping", as suggested by some of our colleagues. XML also allows you to use references to any unicode character; the easiest way (in my humble opinion) to produce these references is to type an ampersand (&), followed by a pound sign (#), followed by the letter "x", followed by the unicode code for the character you want, followed by a semi-colon (;). The unicode code for the letter "a" is 61, so the reference in XML that produces an "a" is "a" (minus the quotes, of course). For unicode tables of every character known to man (and woman), go to http://www.unicode.org/charts/ . Take care, Erik XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|