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

RE: html attributes

Subject: RE: html attributes
From: Chuck Evans <chuck.evans@xxxxxxxxxxxxxxx>
Date: Thu, 23 Aug 2001 12:23:22 -0700
chuck evans
Here's an example from an XSL sheet I'm using. It pulls several variables
from the XML file.

<xsl:element name="image">
<xsl:attribute name="src">/images/<xsl:value-of
select="lang_root"/>/company/main.gif</xsl:attribute>
<xsl:attribute name="width">570</xsl:attribute>
<xsl:attribute name="height">115</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of
select="about_us_image_tagline"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of
select="about_us_image_tagline"/></xsl:attribute>
</xsl:element>

-----Original Message-----
From: Kevin_Gutch@xxxxxxxxxxx [mailto:Kevin_Gutch@xxxxxxxxxxx]

Does anyone have an example of inserting an <xsl:value-of select
="//myValue">  into an HTML attribute.

For instance, I want to populate an image SRC tag with an  <xsl:value-of
select="//myValue">. I can do this but I then want to populate the ALT
attribute with a value from the same XML.

 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.