Subject: Re: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] value for href, Scott Hofmann | Thread | Re: [xsl] value for href, Mike Brown |
RE: [xsl] Problem with SimpleTransf, Duffey, Kevin | Date | Re: [xsl] value for href, Mike Brown |
Month |