Loading Image through XSL
Here is my XML..
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="user.xsl"?>
<UserList>
<User currentEAddressId="-1" currentNAddressId="-1" currentPhoneNumberId="-1" userId="7">
<Name value="Christian"/>
<Surname value="De Martino"/>
<Gender value="Male"/>
<Credential value="User"/>
<Nickname value="parola"/>
<ImagePath value="C:\Documents and Settings\Friend\Desktop\name.png"/>
<Birthday value="Wed Mar 24 00:00:00 CET 1999"/>
<CreationDate value="Tue Jan 24 16:16:51 CET 2006"/>
<Document userId="-1">
<Type value="Identity Card"/>
<Number value="0000000000000"/>
<Description value=""/>
<ReleaseAuthority value="Motorization"/>
<Release value="Tue Jan 24 16:16:17 CET 2006"/>
<Expiration value="Tue Apr 24 00:00:00 CEST 2007"/>
<ImagePath value=""/>
</Document>
<NAddressList/>
<EAddressList/>
<PhoneNumberList/>
</User>
</UserList>
and here is my XSL
<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
<center><p><b>
USER LIST</b></p></center>
<table border="1">
<tr bgcolor="#FFCC66">
<th align="left">Name</th>
<th align="left">Gender</th>
<th align="left">Credential</th>
<th align="left">Nickname</th>
<th align="left">Birthday</th>
<th align="left">CreationDate</th>
<th align="left">Doc Type</th>
<th align="left">Doc Expiration</th>
<th align="left">Doc Number</th>
<th align="left">Doc Release Authority</th>
<th align="left">Doc Release</th>
</tr>
<xsl:for-each select="UserList/User">
<xsl:sort select="Name/@value"/>
<tr>
<td>
<xsl:value-of select="ImagePath/@value"/>"
<xsl:value-of select="Name/@value"/>
<xsl:value-of select="Surname/@value"/></td>
<td><xsl:value-of select="Gender/@value"/></td>
<td><xsl:value-of select="Credential/@value"/></td>
<td><xsl:value-of select="Nickname/@value"/></td>
<td><xsl:value-of select="Birthday/@value"/></td>
<td><xsl:value-of select="CreationDate/@value"/></td>
<td><xsl:value-of select="Document/Type/@value"/></td>
<td><xsl:value-of select="Document/Expiration/@value"/></td>
<td><xsl:value-of select="Document/Number/@value"/></td>
<td><xsl:value-of select="Document/ReleaseAuthority/@value"/></td>
<td><xsl:value-of select="Document/Release/@value"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>
I want to display the image. how do i write my XSL so that i can display the image ..in the output..
in the XML i have
<ImagePath value="C:\Documents and Settings\Friend\Desktop\name.png"/>
and when i view my output i want this image to be displayed as output..
|