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]

Re: Displaying images with IE 5.0 XSL


Mark Andrews wrote:
> <sitelogo src="logo.gif" alt="Website logo"/>

>         <target-element type="sitelogo"/>
>         <IMG  src='=getAttribute("src")'
>                     alt='=getAttribute("alt")' />

No idea what this target-element, getAttribute stuff is.
I don't think it even is MSXML!

You didn't mention what the context is.

Assuming your template is processing a node one level up
from the sitelogo element,

  <img src="{sitelogo/@src}" alt="{sitelogo/@alt}"/>

If you're at the sitelogo element, simply

  <img src="{@src}" alt="{@alt}"/>

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/


 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]