[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: Compute attribute value from sub-element
Subject: Re: Compute attribute value from sub-element From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx> Date: Mon, 16 Aug 1999 10:14:38 -0400 |
<xsl:template match="entry"> <a href="http://www.frob.org/search?type=simple&key={key}"> <xsl:value-of select="description"/> </a> </xsl:template> If key includes embedded spaces you will have to use urlEncode. <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" xmlns:url="http://www.jclark.com/xt/java/java.net.URLEncoder"> <xsl:template match="entry"> <a href="http://www.frob.org/search?type=simple&key={url:encode(string(key))}"> <xsl:value-of select="description"/> </a> </xsl:template> Jon Smirl jonsmirl@xxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Compute attribute value from sub-el, Kai Großjohann | Thread | Re: Compute attribute value from su, Kai Großjohann |
Compute attribute value from sub-el, Kai Großjohann | Date | Re: Netscape support for XSL Styles, Chuck White |
Month |