Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: help URL Encoded for " / " (special char)

From: Peter Flynn <peter.nosp@-.--------.-->
To: NULL
Date: 9/14/2007 8:47:00 PM

kamkaro wrote:
> Thanks for your reply. Actually, I created table in xslt and inside the 
> table i have values which i have to give url link in order to go to different 
> websites. Web browser handle  white space but can't handle '/' when i have 
> '/' character between two words, just give me the blank page. I put replace 
> function '/' to white space but still get the blank page.

Don't use the slash and expect it to be treated as a letter. It's not.

The slash in a URI normally gets interpreted by the server (not the 
browser) as a directory path separator, so

    http://foo.bar.com/stuff/sun/moon/page.html

will (by default) make the server look for a file in the document root 
called stuff/sun/moon/page.html

In fact the slash doesn't have to mean a directory separator -- some 
servers (eg Cocoon) let you specify URIs which you can program it to 
react to by serving specific documents in a particular way. But they 
still *look* like a directory path to the user.

RFC 3986 says (section 1.2.3)
    The generic syntax uses the slash ("/"), question mark ("?"), and
    number sign ("#") characters to delimit components that are
    significant to the generic parser's hierarchical interpretation of
    an identifier.

For practical purposes a slash is not an acceptable character in a file 
name. Change it to something acceptable, like sun-moon.

///Peter
-- 
XML FAQ: http://xml.silmaril.ie/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent