tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dariush Behboudi" <>
Subject R: Xtag taglib and iso-8859-1 *** HELP ***
Date Tue, 11 Feb 2003 14:31:51 GMT
hi brian,
I need to use CDATA tag and disable-output-escaping just because the real
content is an html content (probably not well formed) retrived from a Clob
oracle field.
The first strange thing is that, after retriving this field in a ISO-8859-1
encoded string (via InputStreamReader), all transformations on this String
using a new encoding fails (also generating a new ISO-8859-1 encoded string
String new = String (original.getBytes(),"ISO-8859-1");
This sound me as a strange thing, I espected the same content for the new
string, but the new string is malformed...maybe I'm making a mistake?

The metatag was a test, the only way to display correctly my content
(without parsing it), is to force the charset to 'UTF-8'.
Now I'll try the jstl taglib.

P.S. On a Windows XP server everything (including transformation) works
fine, I've problems on a Sun server, with OC4J.

Regards, Dariush.

-----Messaggio originale-----
Da: bryan []
Inviato: martedì 11 febbraio 2003 11.11
A: 'Tag Libraries Users List'
Oggetto: RE: Xtag taglib and iso-8859-1 *** HELP ***

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"
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 []
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 []
Inviato: lunedì 10 febbraio 2003 23.08
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"?>

And here my xsl file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
<xsl:output encoding="iso-8859-1" method="html"
cdata-section-elements="clobText" omit-xml-declaration="yes"
<xsl:template match="testo">
   <xsl:value-of select="clobText" disable-output-escaping="yes"/>

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
      Via Negroli, 35
      20133 Milano (Italy)

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message