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]

RE: value for href


Somebody correct me if I am wrong, but I believe you use the xsl:attribute
to do this?

<a>
  <xsl:attribute name="href">
    <xsl:value-of select="SiteURL"/>
  </xsl:attribute>
</a>

I hope that is it. That is how I have done it in the past. There might be a
more convenient way to do it though..not sure.

> -----Original Message-----
> From: Scott Hofmann [mailto:hofmanns@one.net]
> Sent: Thursday, October 18, 2001 1:11 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] value for href
> 
> 
> I put the below line of code into an .XSL file and it complains that 
> the value of attribute "href" must not contain the '<' character.
> 
> <td bgcolor="lightsteelblue"><b>URL</b>:  <a href="<xsl:value-of 
> select='SiteURL'/>"><xsl:value-of select='SiteURL'/></a></td>
> 
> So how could i format this line so the value for <xsl:value-of 
> select='SiteURL '/>  gets inserted into the <a href> area?
> 
> Scott
> -- 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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