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

Re: How to call a href?

Subject: Re: How to call a href?
From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx>
Date: Fri, 6 Aug 1999 12:22:56 -0400
how to use urlencoder
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


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.