xsl-list
[Top] [All Lists]

RE: Character entities in attribute values

2003-04-22 11:57:43
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. "‪"?

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: é 
instead of this: é

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(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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