Re: How to display img using XSLT

Jonas Sicking <[email protected]> Mon, 16 Apr 2007 15:06:22 -0700
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
[email protected] wrote:
>     <tr bgcolor="#daa520">
>       <th align="left">Name</th>
>       <th align="left">Description</th>
>       <th align="left">Materials(1)</th>
>       <th align="left">Materials(2)</th>
>       <th align="left">Materials(3)</th>
>       <th align="left">Materials(4)</th>
>       <th align="left">Materials(5)</th>
>     </tr>
>     <xsl:for-each select="item/woodworking/apprentice">
>       <xsl:value-of select="title"/>
>       <xsl:attribute name="src"><xsl:value-of select="desc/img/@src"/>
> </xsl:attribute>

What are you trying to add the attribute to? I assume you mean to add it 
to an <img> element, but there is none around.

/ Jonas