This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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>
...
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]