Subject: Re: How to call a href?
From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx>
Date: Fri, 6 Aug 1999 12:22:56 -0400
|
From: Robert Barta <rho@xxxxxxxxxxxx>
> Hmmm, any ideas how to escape the blank (or other special chars) to have
> a decent URI?
You need to use URLEncoder with a java extension function....
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
xmlns:url="http://www.jclark.com/xt/java/java.net.URLEncoder"
xmlns="http://www.w3.org/TR/REC-html40" result-ns="">
<xsl:if test="extension-function-available('url:encode')">
<a href="component.xml?name={url:encode(.)}">
<xsl:value-of select="."/>
</a>
</xsl:if>
Jon Smirl
jonsmirl@xxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|