This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: & character in tags
- To: xsl-list at mulberrytech dot com
- Subject: Re: & character in tags
- From: Mike Brown <mike at skew dot org>
- Date: Thu, 18 May 2000 22:47:26 -0600 (MDT)
- Reply-To: xsl-list at mulberrytech dot com
> 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 ±).
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 < >
& ' and ", 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