Subject: Re: [xsl] Passing through character entities intact From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 11 Oct 2001 09:29:00 +0100 |
> I would like pass the entity through so I can use a non-encodable > character(mdash) in the final output. What happens in Xalan, is that when it > finds a '&' character code it substitues the '&' reference. This does > not work for non-standard, but common references such as mdash. As a result > setting the output encoding to ISO_8859-1, which is the most compatable for > the web, will cause an XSLT processor to throw and error or input a > character like '?' instead of the entity reference. If you output a character that is not in th especified output encoding then the system should use a nu,eric character reference, or, for the html output method it might use html enity names. It's hard to tell from your description, but either you are doing something wrong or there is a bug in the system. There is no way an input of — should ever produce & (assuming a dtd defining mdash to be an appropriate character is used). David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Passing through character, Mike Brown | Thread | RE: [xsl] Passing through character, McCollum , Angus |
Re: [xsl] Text output, David Carlisle | Date | Re: [xsl] Recursive definition of X, David Carlisle |
Month |