thunderain
Programmer
I am working on my first major xml project. I have everything working pretty well working
except putting an image in. I have tried many different things, but here is what i have now.
I cannot get the image to appear except as hardcoded below.
Here is what I have in my XML:
<images>
<img src="xxx.jpg"/>
</images>
(this is inside songsite and song tags)
Here is what I have in my XSL:
<P/><xsl:value-of select="/songsite/song/images"/>
<img>
<xsl:attribute name="src">
<xsl:value-of select="@src" />
</xsl:attribute>
</img>
If i hardcode my jpg file into the xsl code on the third line, as below, the image pops up.
<xsl:attribute name="src">xxx.jpg
But i can't do this, I need to send it from the xml sheet
Can anyone help me
thank you
thunderain
except putting an image in. I have tried many different things, but here is what i have now.
I cannot get the image to appear except as hardcoded below.
Here is what I have in my XML:
<images>
<img src="xxx.jpg"/>
</images>
(this is inside songsite and song tags)
Here is what I have in my XSL:
<P/><xsl:value-of select="/songsite/song/images"/>
<img>
<xsl:attribute name="src">
<xsl:value-of select="@src" />
</xsl:attribute>
</img>
If i hardcode my jpg file into the xsl code on the third line, as below, the image pops up.
<xsl:attribute name="src">xxx.jpg
But i can't do this, I need to send it from the xml sheet
Can anyone help me
thank you
thunderain