[xsl] transforming hyperlinks encoding(?) problem

Subject: [xsl] transforming hyperlinks encoding(?) problem
From: "Vic Gar" <vlg8693@xxxxxxxxxxx>
Date: Thu, 06 Sep 2001 12:14:34 -0700
I have a problem to use hyper links that contains special characters.
I have a link to a file that has special Unicode characters in its name. I am using xalan to transform
input XML to Html. I noticed that xalan automatically converts special characters.
for example I have this character u\05E9 (Unicode)
1. in the title attribute of the <a> it is converted by xalan to &#1513.
2. in the href attribute it is being converted to %D7%A9.


when I open the html file via apache web-server I see the title as should be but when I click on the
link it can't find the file.


I understand that html 4 requires special character in the URI to be converted to UTF-8.

so the string coming from the xml is (I replaced the special characters with their Unicode values):
file://yossim/shr/[u\005E9][u\005DC][u\005d5][u\005dd].txt


and the translated html is :
<a href="file://yossim/shr/%D7%A9%D7%9C%D7%95%D7%9D.txt" title="&#1513;&#1500;&#1493;&#1501;.txt">&#1513;&#1500;&#1493;&#1501;.txt</a>



what is the problem, why IE5 can't open the file???


Thank you

Vic

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread