This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: concat with <A HREF=
- To: <xsl-list at mulberrytech dot com>
- Subject: Re: concat with <A HREF=
- From: "Peter Friedland" <friedland at ieee dot org>
- Date: Thu, 6 Apr 2000 12:14:38 -0400
- References: <OF985E55FB.EBC1FF75-ON862568B9.004CEACF@i2.com>
- Reply-To: xsl-list at mulberrytech dot com
That worked. Thanks for your quick reply!
----- Original Message -----
From: <Larry_Mason@i2.com>
To: <xsl-list@mulberrytech.com>
Sent: Thursday, April 06, 2000 10:02 AM
Subject: Re: concat with <A HREF=
>
> Have you tried the following? Or is the problem with the actual concating?
> Larry
>
> <A>
> <xsl:attribute name="href">
> <xsl:value-of select="$MEMBER-ID"/>
> </xsl:attribute>
> <xsl:apply-templates select="memberId"/>
> </A>
>
>
>
>
>
> "Peter Friedland" <friedland@ieee.org>@mulberrytech.com on 04/06/2000
> 08:37:43 AM
>
> Please respond to xsl-list@mulberrytech.com
>
> Sent by: owner-xsl-list@mulberrytech.com
>
>
> To: <xsl-list@mulberrytech.com>
> cc:
> Subject: concat with <A HREF=
>
>
>
> I'm trying, unsuccessfully, to take the value of an element, concat it
> with something else and use the results in the HREF attribute of an <A>
> tag. Can anyone help?
>
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <members>
> <ccmscore.Member>
> <memberId>12345678</memberId>
> </ccmscore.Member>
> </members>
>
> ...
> <xsl:template match="ccmscore.Member" mode="DETAILS">
>
> <TR>
> <xsl:variable name="MEMBER-ID-RAW"><xsl:apply-templates select
> ="memberId"/></xsl:variable>
> <xsl:variable name="LEFT-ANCHOR">view_member.jsp?memberId=</xsl:variable>
> <xsl:variable name="MEMBER-ID"
> select="concat($LEFT-ANCHOR, $MEMBER-ID-RAW)"/>
>
> <TD NOWRAP="TRUE"><A HREF='$MEMBER-ID'><xsl:apply-templates select
> ="memberId"/></A></TD>
>
> </TR>
> ...
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list