Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: help URL Encoded for " / " (special char) [Thread Next] Re: help URL Encoded for " / " (special char)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/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
