Hi,
I am having problems with an image string which prints the string to the screen instead of loading the image!
1. in my xsp page I first build up the image string as so:
<xsp:logic>
String num = "39";
StringBuffer sb = new StringBuffer()
.append("<img src=\"")
.append(num)
.append(".jpg\" border=\"0\" width=\"200\" height=\"200\" />");
String artist1 = sb.toString();
</xsp:logic>
<page>
<artists-photo1>
</xsp:expr>
</artists-photo1>
</page>
2. In my XSL page I do the following(snippet....):
..........
<tr>
<td><xsl:apply-templates select="//artists-photo1"/></td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="artists-photo1">
<xsl:apply-templates />
</xsl:template>
What am I doing wrong?
The XML output generated to the screen is (snippet..), which looks ok to me but doesn't process the image tag line!!!:
-
<body>
-
<table leftmargin="0" marginheight="0" cellspacing="0" cellpadding="0" border="0">
</tr>
-
<tr>
-
<td>
<img src="39.jpg" border="0" width="200" height="200" />
</td>
</tr>
</table>
</body>
</html>
many thanks in advance...
- Re: Processing issue..... beyaNet Consultancy
- Re: Processing issue..... Geoff Howard
