Subject: Re: value for href
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 18 Oct 2001 17:04:03 -0400
|
[Scott Hofmann]
> 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?
>
The simplest way among several possiblities is
<a href="{SiteURL}">...</a>
This is called an "attribute value template". Your way is illegal in XML.
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- value for href
- Scott Hofmann - Thu, 18 Oct 2001 16:16:56 -0400 (EDT)
- Thomas B. Passin - Thu, 18 Oct 2001 17:14:34 -0400 (EDT) <=
- Mike Brown - Thu, 18 Oct 2001 17:17:20 -0400 (EDT)
- <Possible follow-ups>
- Duffey, Kevin - Thu, 18 Oct 2001 16:55:31 -0400 (EDT)
- timw - Thu, 18 Oct 2001 19:36:37 -0400 (EDT)
|
|