This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]