This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: href attributes
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] href attributes
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Wed, 30 May 2001 11:39:37 +0200 (MET DST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I want to do the following:
> <a href = "C:/images/cat.gif"
> target="blank"
> View
> </a>
[...]
> My xsl to deal with the above href is currently:
>
> <a><xsl:attribute name="href"><xsl:value-of
> select="image/@src"/></xsl:attribute>
> View</a>
>
> How do I incorporate the target="blank"?
where is the problem?
<a>
<xsl:attribute name="href">
<xsl:value-of select="image/@src"/>
</xsl:attribute>
<xsl:attribute name="target">blank</xsl:attribute>
View</a>
Oh - no, just kidding, better do
<a target="blank" href="{image/@src}">View</a>
Have fun,
Oliver
/-------------------------------------------------------------------\
| ob|do Dipl.Inf. Oliver Becker |
| --+-- E-Mail: obecker@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list