|
Subject: RE: [xsl] html attributes From: "Robert Koberg" <rob@xxxxxxxxxx> Date: Thu, 23 Aug 2001 12:33:10 -0700 |
it was definitely not intuitive for me to use the Attribute Value Template:
<IMG SRC="{$my-image}"/>
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Chuck Evans
Sent: Thursday, August 23, 2001 12:23 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE: [xsl] html attributes
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] html attributes, Chuck Evans | Thread | RE: [xsl] html attributes, Kevin_Gutch |
| RE: [xsl] html attributes, Chuck Evans | Date | [xsl] dynamic xsl transformation, Jennifer Hochgesang |
| Month |