|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: href attributes
Just like you did with the href.
<a>
<xsl:attribute name="href">
<xsl:value-of select="image/@src"/>
</xsl:attribute>
<xsl:attribute name="target">blank</xsl:attribute>
View
</a>
A more elegant code looks like this:
<a href="{image/@src}" target="blank">View</a>
Where the {} do the same as <xsl:value-of>
Hope that helps,
Marcus Klinge
Web Producing
----------------------
Karzauninkat Webdesign
Barner Strasse 14
22765 Hamburg
Tel: 040 39834 771
Fax: 040 39834 779
-----Ursprüngliche Nachricht-----
Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Tanzila
Mohammad
Gesendet: Mittwoch, 30. Mai 2001 11:25
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: href attributes
I want to do the following:
<a href = "C:/images/cat.gif"
target="blank"
View
</a>
Where target="blank" allows for a pop-up window of the image when you click
on "View".
My xml for the image is as follows:
<image src="C:/images/cat.gif"></image>
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"?
Tanz
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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








