[xslt] xsl question
- From: spinmar interfree it ()
- To: xslt gnome org
- Subject: [xslt] xsl question
- Date: 3 Feb 2003 08:30:49 -0000
Hi I have noticed something which I can't understand if it's a xsl problem, libxslt problem or a problem of mine.
I have an element which contains some some latin1 words:
<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
<a>volontà</a>
</root>
In my xsl trasformation result I'd like to insert the content of <a> in a href attribute. So I call:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
<xsl:template name="/root">
<a href="query={a}" .......
.....
The result is very strange: the latin1 character is not inserted correctly but it's trasformed in a stange character (utf-8?).
The same result if I use <xsl:attribute ...>.
Is it normal? It' an error of mine, a xsl bug or a libxslt bug?
I had to use a xsl recursive template to trasform the latin1 character to %xx with a growth of time trasformation.
Thanks and cheers
--Marco
-----------------------------------------------------
Salve, il messaggio che hai ricevuto
è stato inviato per mezzo del sistema
di web mail interfree. Se anche tu vuoi
una casella di posta free visita il
sito http://club.interfree.it
Ti aspettiamo!
-----------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]