|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: href attributes
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








