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

Re: URL escaping in HTML output

Subject: Re: URL escaping in HTML output
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 9 Aug 2001 16:28:46 -0400
url escaping slash
[Joerg Pietschmann]> using Saxon 6.4, i have an URL of
>  /foo?rel=bar/baz
> stuffed literally into the generated HTML code. Yes, it is a href
> attribute of an A element. While reading the URI RFCs i got the
> impression that the slash in the query string should have been
> escaped as %2F.

Looking at rfc 1945, "Hypertext Transfer Protocol -- HTTP/1.0",  there's no
problem with using "/" in the query string.  The relevant part of the BNF is

query          = *( uchar | reserved )
...
reserved       = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+"

So a slash is clearly allowed.  I don't have the HTTP/1.1 rfc handy, but I
doubt that it's changed.  For use with HTML hrefs, the HTTP rfc should be
authoritative, I would think.

>Fortunately, none of the browsers or http servers
> i use has complained. Can somebody tell me whether i'm wrong or
> whether it is a bug in the processor?

Seems it's not a bug at all.

Cheers,

Tom P



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


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.