You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Eric Hartmann <er...@rhinfo.com> on 2001/03/28 19:18:07 UTC

Some encoding problems

Hi,

I have some problems with latin character. I have an attribute (MESSAGE)
of a element (ROOT) which contains some html code like
"<b>évolution</b>".
So in my XSL sheet I have this element :
<xsl:value-of select="@MESSAGE" disable-output-escaping="yes"/>
But the problem is the character "é" disapear with
disable-output-escaping="yes".

This is my test XSL :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY xhtml-lat1 SYSTEM
     "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
  <!ENTITY xhtml-special SYSTEM
     "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
  <!ENTITY xhtml-symbol SYSTEM
     "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
  ]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" indent="no"/>   
<xsl:template match="ROOT">
<html>
<head>
<TITLE>Test</TITLE>
</head>
<body>
<xsl:value-of select="@MESSAGE" disable-output-escaping="yes"/>
</body>
</html>	
</xsl:template>

Is there something I'm doing wrong ?

Eric