|
Subject: Re: [xsl] href attributes From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 30 May 2001 11:39:37 +0200 (MET DST) |
> 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@xxxxxxxxxxxxxxxxxxxxxxx |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| AW: [xsl] href attributes, Sebastian Schirmer | Thread | Antwort: [xsl] href attributes, P . Vogt |
| AW: [xsl] href attributes, Sebastian Schirmer | Date | Re: [xsl] Re:Re:How to simplify the, Jeni Tennison |
| Month |