[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: href attributes

Subject: AW: href attributes
From: "Marcus Klinge" <klinge@xxxxxxxxxxxxxxx>
Date: Wed, 30 May 2001 11:35:04 +0200
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.