Subject: RE: Compute attribute value from sub-element
From: Richard Heim <rheim@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 16 Aug 1999 13:41:50 -0400
|
I'm new at this so please excuse me if I'm off track, but, I'm confused
about "apply-templates."
Would this do the same:
<xsl:template match="entry">
<xsl:for-each select="entry">
<a>
<xsl:attribute name="href">
http://www.frob.org/search?type=simple&key=<xsl:value-of select="key"/>
|
</xsl:attribute><xsl:value-of select="description"/>
</a>
</xsl:for-each>
</xsl:template>
,-----
> | <xsl:template match="entry">
> | <a>
> | <xsl:attribute name="href">
> |
> http://www.frob.org/search?> type=simple&key=<xsl:value-of
> select="key"/>
> |
> </xsl:attribute>
> | <xsl:apply-templates match="description"/>
> | </a>
> | </xsl:template>
> `-----
>
> -----Original Message-----
> From: Kai.Grossjohann@xxxxxxxxxxxxxxxxxx
> [mailto:Kai.Grossjohann@xxxxxxxxxxxxxxxxxx]
> Sent: Monday, August 16, 1999 12:12 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: Compute attribute value from sub-element
>
...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|