Groups | Blog | Home
all groups > dotnet xml > december 2005 >

dotnet xml : How to code <A> target attribute


Aaron
12/27/2005 7:19:29 AM
<a>

<xsl:attribute name="href">

http://<xsl:value-of select="name" />

</xsl:attribute>

<xsl:value-of select="thelink" />



</a>

Here above is the code for <a> links getting transformed--I would like to
know how code in target=_blank?



TIA





Martin Honnen
12/27/2005 5:00:39 PM


[quoted text, click to view]

Well you have a literal result <a> element so the easiest possible way
is to add a literal result attribute and simply use
<a target="_blank">
You could simplify the whole attempt to
<a target="_blank" href="http://{name}"><xsl:value-of
select="thelink" /></a>

--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button