Re: [xsl] URL encoding

Subject: Re: [xsl] URL encoding
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 18 Oct 2002 09:32:41 -0600 (MDT)
J.Pietschmann wrote:
> Zakon, Stuart wrote:
> > Is there a function or combination of functions in XSLT that will help in
> > URL encoding?  I have blank spaces in a string that is part of a URL and I
> > want to escape them with '%20'. The translate function doesn't work here
> > because it is doing character substitution, not string substitution.
> Ther is no built-in function, but there are various solutions
> available as libraries. Check out EXSLT and Dimitre Novatchevs
> FXSL. The XSLT FAQ has also hints, for example look at

Here's a pure XSLT solution:

It assumes you will use it only on the pieces of the URI that you know
might need to be escaped.

   - Mike
  mike j. brown                   |  xml/xslt:
  denver/boulder, colorado, usa   |  resume:

 XSL-List info and archive:

Current Thread