Re: [xslt] Does xslt has any encoding settings?



Joseph Jude writes:
> 
> These are the xml and xsl. I read through the docs and certainly I am
> missing something, but cannot figure it out.
> 
There are special rules for URL encoding applying here.
I don't know the details but this issue has been discussed on this
list a number of times.
So I suggest you search the archives for URL encoding issues.

[...]
>  
>  This produces the output:
>  
>  <html xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>  <head>
>  <META http-equiv="Content-Type" content="text/html; charset=UTF-16">
>  </head>
>  <body>th_100_001Ã .jpg<IMG src="th_100_001%C3%A0.jpg"></body>
>  </html>
> 
> As you can see the first <xsl:value-of select="Album/ThumbPath" />   is
> transformed correctly. However the second which is inside the IMG tag
> doesnt. Any help appreciated. I tried to find it out myself by reading
> through the docs, but I give up, I need some help.
> 
No I cannot. Where does the 'content="text/html; charset=UTF-16"' come
from, if you asked for iso-8859-1? And why do you have utf8 in the text?

I get 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<html xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head>
<body>th_100_001à.jpg<IMG src="th_100_001%C3%A0.jpg">
</body>
</html>

for your xml and xsl, which looks reasonable to me.
(using libxml 20504, libxslt 10025 and libexslt 716 under linux)

greetings
	Morus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]