RE: [xsl] Character entities in attribute values

Subject: RE: [xsl] Character entities in attribute values
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 22 Apr 2003 19:57:43 +0100
> I'm working with non-English documentation and am ending up 
> with character entities in attribute values after an XML->XML 
> conversion.  

What exactly do you mean by "character entities"? There is no such thing
in XML. Perhaps you mean "character references", e.g. "&#x202A;"?

> This is fine, but in a later XML->HTML 
> conversion, I need to output those attribute values as text, 
> and the ampersand in the entities is being escaped so that 
> the output text looks something like this: &amp;eacute; 
> instead of this: &eacute;
No sequence of pure XSLT transformations can lead to this result, unless
you use disable-output-escaping somewhere along the line, in which case
you deserve what you get.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

 XSL-List info and archive:

Current Thread