[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: & character in tags

Subject: Re: & character in tags
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 18 May 2000 22:47:26 -0600 (MDT)
quot character table in xsl
> to get the reference to all chars. go to this
> http://www.webreference.com/dlab/books/html/3-4-tab.html  , I found it
> really good .

That table is for HTML and contains at least one error (look at &#177;).

Even if you are generating HTML output, your stylesheet is XML. The
numeric character references in that table are fairly accurate, but the
'mnemonic entities' are not, for XML. With the exception of &lt; &gt;
&amp; &apos; and &quot;, the named entities are unknown to an XML parser,
which would be used by an XSL processor to read in the stylesheet.

Also, that table can be misleading because it relies on the browser's
ability to display the correct glyphs. There is no charset parameter
supplied in a <meta> element, nor is the document served with one in the
HTTP headers.

Do not use that table.

When writing HTML, follow the rules in sections 5.3.1 and 5.3.2 of the
HTML 4.01 specification at http://www.w3.org/TR/html401/ and use the
sample glyphs in the charts at http://charts.unicode.org/Web.html

When writing XML or XHTML, review sections 2.2 and 4.1 of the XML 1.0
Recommendation at http://www.w3.org/TR/REC-xml and again, use the charts
at the Unicode site.

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.