Subject: RE: [xsl] URL encoding of UTF-8 data in MSXML From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 8 Dec 2004 10:17:18 -0000 |
URLs in href attributes, and other attributes where URLs are expected, should be %HH-encoded automatically if you use the HTML output method. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Bjorn Boxstart [mailto:Boxstart@xxxxxxxxxxxxxx] > Sent: 08 December 2004 09:24 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] URL encoding of UTF-8 data in MSXML > > > Hello all, > > From within an XSL-T stylesheet I need to create HTML > hyperlinks in the output HTML files. The data has UTF-8 > encoding and so does the resulting HTML file. The data that > is used for the links contains special characters and must > therefore be URL encoded. I found a way to do this by use of > named templates. The thing is however that this method > (mentioned somewhere in the archive of this list) doesn't > handle characters outside latin-1 correctly (e.g. russian > texts). Because I use MSXML (must) I can't use the Java class > and method URLEncoder.encode(). > > Can anybody tell me how to encode URL's from within a XSL-T > stylesheet (run on a msxml processor). I know that a solution > might be mentioned somewhere in the archive of this list, but > that link doesn't seem to be working anymore. > > Thanks in advance for your reaction! > > Bjvrn
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] URL encoding of UTF-8 dat, Marian Olteanu | Thread | Re: [xsl] URL encoding of UTF-8 dat, David Carlisle |
RE: [xsl] Defining a key on a RTF i, Michael Kay | Date | [xsl] Number of Templates Exceeded , Sundararaman S A |
Month |