images with xslt
hello,
I am working on a project which involves xslt 2.0 where I have a structure.xml, stylesheet.xsl and a products.xml which when used with <xsl:result-document> creates a number of pages. eveything is working fine except for trying to display images, which has me completely stumped. here is some coe from my procducts.xml file:
<product>
<usedin section_title="computers" subsection="desktops"/>
<description> Dell Whoopie Do</description>
<price>£399.99 inc vat and deliviery</price>
<img src="{/images/athlon64small.jpg}"/>
</product>
the description and price data is displaying ok by I cannot for the life of me work the syntax for displaying an image from a file. I have tried other methods, including the following:
<img><xsl:attribute name="src=">
<xsl:value-of select="concat('images/','athlon64small.jpg')"/></xsl:attribute>
<xsl:value-of select="@name"/></img>
if anyone could possibly shed eom light on this, I may have some hair left for christmas :)
chris
|