Subject: AW: [xsl] href attributes From: "Marcus Klinge" <klinge@xxxxxxxxxxxxxxx> Date: Wed, 30 May 2001 11:35:04 +0200 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] href attributes, Tanzila Mohammad | Thread | Re: [xsl] href attributes, Swen Thuemmler |
[xsl] turing complete?, Dan Diebolt | Date | Re: [xsl] href attributes, Swen Thuemmler |
Month |