|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Passing through character entities intact
>>>>> "Angus" == McCollum , Angus <AMcCollum@xxxxxxxx> writes:
Angus> I would like pass the entity through so I can use a
Angus> non-encodable character(mdash) in the final output. What
Angus> happens in Xalan, is that when it finds a '&' character
Angus> code it substitues the '&' reference. This does not
Angus> work for non-standard, but common references such as
Angus> mdash. As a result setting the output encoding to
Angus> ISO_8859-1, which is the most compatable for the web, will
Angus> cause an XSLT processor to throw and error or input a
Angus> character like '?' instead of the entity reference.
This is impossible to achieve - mdash is not supported by ISO 8859-1.
Output as UTF-8 - most web browsers support that now.
Alternatively, in the internal subset of the input document, define
mdash as a hyphen:
e.g. here's how I do it in docbook, when I intend ISO 8859-1 output
for HTML:
<!ENTITY mdash "‐">
--
Colin Paul Adams
Preston Lancashire
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
|

Cart








