You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Faraz Kohari <fk...@wxs.nl> on 2000/08/01 16:07:05 UTC
Escaping spaces in URIs
Reference:
Xalan 1.1
Xerces 1.1.2
Hi there:
I have not been able to check the archive for this question since the
archive is unavailable, so I apologize if this has been handled (and would
really appreciate it if someone mails me the answer).
The xalan documentation refers to the fact that if the xsl:output is defined
as HTML a number of URI items are escaped for proper HTML usage (such as
spaces to %20), this apparently should work in the case of the <A> and <IMG>
tags. However, when I use something like
<A HREF="somepage?uri={URI}">-->
or
<A>
<xsl:attribute name="HREF">somepage?uri=
<xsl:value-of select="URI"/>
</A>
where URI is an element containing a valid uri (with embedded spaces), the
space does not get escaped causing a problem in Netscape Navigator.
I have handled this problem with a function. But am interested in knowing if
this is a bug or am I assuming something wrong.
Thanks