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

RE: URL encoding

Subject: RE: URL encoding
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 20 May 2002 08:52:15 +0100
xpath url encode
> Is there a quick way to encode URLs in XSL? 
> 
> Ex: Convert 
> http://myurl.com/document.html?param1=foo1&param2=foo2 to 
> http%3A%2F%2Fmyurl.com%2Fdocument.html%3Fparam1%3Dfoo1%26param
> 2%3Dfoo2 
> 
There isn't a built-in function to do it, though we're planning to add
one in XPath 2.0.

But more to the point, your encoding is wrong according to RFC 2396.
Special characters such as "/", "?", and ampersand should be %HH-encoded
only when they are used as ordinary characters, not when they are used
with their special meanings.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread
  • URL encoding
    • Zack Angelo - Sun, 19 May 2002 21:13:39 -0400 (EDT)
      • Michael Kay - Mon, 20 May 2002 04:01:04 -0400 (EDT) <=
      • Mike Brown - Mon, 20 May 2002 07:08:45 -0400 (EDT)
        • Mike Brown - Mon, 20 May 2002 15:52:46 -0400 (EDT)
        • bryan - Wed, 22 May 2002 06:51:35 -0400 (EDT)

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.