xml html string in xsl

djohnston

Active member
Joined
Jun 1, 2006
Messages
33
Programming Experience
Beginner
Ok so basically I have code like this all done by hand.
HTML:
<?xmlversion="1.0"encoding="utf-8" ?>
<xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:templatematch="/a/b/c_d">
<tablewidth="100%"border="0">
<tr>
<tdcolspan="4"width="600" >
<b>
<fontsize="5pt">CR</font>
</b>
</td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
</table>
<xsl:apply-templatesselect="vc" />
</xsl:template>
<xsl:templatematch="vc">
<tablewidth="100%"border="0">
<tr>
<tdcolspan="4"width="600" >
<b>
<fontsize="3pt">Areport </font>
</b>
</td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
</table>
<tablewidth="100%"border="0">
<tr>
<tdwidth="5%">
 
</td>
<tdwidth="30%">
<fontsize="2pt">
<b>Report:</b><xsl:value-ofselect="report" />
</font>
</td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
</table>
</xsl:template>
</xsl:stylesheet>
When it returns the report value its actually a string. How do I tell it that it should display it as the string is formatted.

I get something like this


<center>ABC</center><br class="br"/><b>Name:</b> <b phrase="S">AT&T</b> GH<br class="br"/><br class="br"/><b>Address:</b> 84 LOOP ST # 410<br class="br"/>         <b phrase="S">QA, LM</b> 78223<br class="br"/><br class="br"/><b>TL:</b> 555-555-5555<br class="br"/><br class="br"/><b>FILE#:</b> 5655<br class="br"/><br class="br"/><b>123457:</b> 3/1984<br class="br"/><br class="br"/><b>Contents:</b>  


It goes on further from there but i think you get the idea. How do i tell the xsl to use those formatters to generate the page?
 
Last edited by a moderator:
Back
Top