[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Escaping for use in URLs

Subject: Escaping for use in URLs
From: ed billings <edbi@xxxxxxx>
Date: Thu, 04 May 2000 11:41:38 -0500
ed billings
I am looking for a way in XSL to escape text so that it can be added to
a URL.

An Example:

XML
<users>
<username>ed billings</username>
</users>

XSL

<a href="search.jsp?user={user/username}">

or

<a>
<xsl:attribute name="href">search.jsp?user=<xsl:value-of
select="user/username"/>
</xsl:attribute>
</a>

The problem with this scenerio is that the URL ends up looking like:

search.jsp?user=ed billings

instead of:

search.jsp?user=ed+billings


In javascript . . . this is very easy to do . . . .

Does anybody have any suggeestions.

Thanks!

ed billings


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@xxxxxxx
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
Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.