tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bryan" <...@itnisk.com>
Subject RE: Xtag taglib and iso-8859-1 *** HELP ***
Date Tue, 11 Feb 2003 10:11:12 GMT
It's hard to give an answer here as there are so very many different
areas where the problem could be originating. 
1. Xtags is deprecated as far as I understand, should probably switch to
the jstl, it may be that there is some encoding stuff going on that no
one is ever going to fix in Xtags, although I've never had any problems
of an encoding nature - then again I've never attempted a stylesheet
like the one you show.
2. cdata-section-elements attribute on the xsl:output element only
effects xml output; so does omit-xml-declaration for that matter.
3. Is there actually a <meta http-equiv="Content-Type"
content="text/html"
charset="iso-8859-1"> in your output somewhere; just something to check?
4. disable-output-escaping should be avoided as it's implementation
varies from processor to processor.
5. At any rate is there a reason that you need to have this text inside
of a CDATA section, this should also be avoided.




-----Original Message-----
From: Dariush Behboudi [mailto:dariush.behboudi@glamm.com] 
Sent: Tuesday, February 11, 2003 9:54 AM
To: Tag Libraries Users List
Subject: R: Xtag taglib and iso-8859-1 *** HELP ***

No answers?


-----Messaggio originale-----
Da: Dariush Behboudi [mailto:dariush.behboudi@glamm.com]
Inviato: lunedì 10 febbraio 2003 23.08
A: taglibs-user@jakarta.apache.org
Oggetto: Xtag taglib and iso-8859-1 *** HELP ***


Hi everyone,
I've a problem applying xsl files to iso-8859-1 encoded xml files.
I'm using the xpath taglib.
Here my very simple jsp code:

<xtags:style xsl="xsl.xsl">
<?xml version="1.0" encoding="ISO-8859-1"?>
    <testo>
        <clobText>
            <![CDATA[èàèàéè]]>
        </clobText>
    </testo>
</xtags:style>

And here my xsl file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="iso-8859-1" method="html"
cdata-section-elements="clobText" omit-xml-declaration="yes"
indent="yes"/>
<xsl:template match="testo">
   <xsl:value-of select="clobText" disable-output-escaping="yes"/>
</xsl:template>
</xsl:stylesheet>

My CDATA results corrupted after parsing.
PLEASE HELP, Any suggestion is great.

Regards, Dariush.





____________________________________________
Dariush Behboudi Resp.Software Engineering
Phone: +39 02 45441.238Mobile Phone: 335 1207222Fax: +39 02
45441.300dariush.behboudi@glamm.comwww.glamm.comGlamm Interactive Spa
      GRUPPO DATASERVICE
      Via Negroli, 35
      20133 Milano (Italy)



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message