This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using Parameters for HTML Attributes


Hi Manny,

> What would the syntax in the style sheet be so that the img src
> attribute would be the concatenation of $baseURL and
> "images/somepic.gif"?

The simplest syntax would be:

  <img src="{$baseURL}images/somepic.gif" />

Though you could also use:

  <img src="{concat($baseURL, 'images/somepic.gif')" />

Or:

  <img>
    <xsl:attribute name="src">
      <xsl:value-of select="$baseURL" />
      <xsl:text>images/somepic.gif</xsl:text>
    </xsl:attribute>
  </img>

if you really wanted to.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]