This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Escaping for use in URLs
- To: xsl-list at mulberrytech dot com
- Subject: Re: Escaping for use in URLs
- From: ed billings <edbi at crt dot com>
- Date: Thu, 04 May 2000 14:44:41 -0500
- Organization: bank of america
- References: <3911A842.31F8C32C@crt.com> <200005041710.SAA20240@nag.co.uk>
- Reply-To: xsl-list at mulberrytech dot com
The parser I am using does not do this . . . (xalan XSLT)
I have the output set to HTML, do I have to have the encloding set to
something to have this work???
ie: <xsl:output method="html" encoding="?"/>
and I miss spoke the last time . . . it basically needs to make the value
URL-encoded . . . meaning
space = %20
/ = %2F
? = %3F
etc . . . .
Thanks!
ed
David Carlisle wrote:
> > I am looking for a way in XSL to escape text so that it can be added to
> > a URL
>
> If you are using the HTML output method, the XSL processor should do it
> for you, as it writes out the href attribute.
>
> If you are writing XHTML then its a bit harder (and probably in the end
> you shouldn't need to do it, although the specs are less than clear on
> that)
>
> David
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
begin:vcard
n:billings;ed
tel;work:312/234-2343
x-mozilla-html:TRUE
org:bank of america;web services
version:2.1
email;internet:edbi@crt.com
title:web designer
adr;quoted-printable:;;233 south wacker dr.=0D=0Asuite 2800;chicago;il;60606;USA
note;quoted-printable:. . . =0D=0A=0D=0A" . . . whatever . . ."=0D=0A=0D=0A . . .
fn:ed billings
end:vcard