Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying images

Status
Not open for further replies.

kavithashan

Programmer
Jul 24, 2001
7
0
0
IN
How do you use xsl to display images, when the path of the image is specified in the xml file.
 
i'm assuming you want to create html code.

given the xml file

<xml>
<link></xml>

inside your xsl file the following would make the html code...

<a href=&quot;{/xml/link}&quot;/>

when {} appears inside a tag it means that what's inside is an xpath statement.
 
The easiest way i have found to do this is the following.

<img>
<xsl:attribute name=&quot;src&quot;><xsl:value-of select=&quot;YOUR PATH&quot; /></xsl:attribute>
</img>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top