[xsl] Poorly Formed HTML inside XSL Stylesheet

Subject: [xsl] Poorly Formed HTML inside XSL Stylesheet
From: "Kevin Holbrook" <kevinholbrook@xxxxxxxxxxx>
Date: Mon, 26 Nov 2001 21:23:46 +0000
Hello All,

I am in the process of writing stylesheets to transform structured XML
documents into an existing HTML structure.

The problem I face is that I have to include massive amounts of dirty HTML around my XML data, and my manager wants the HTML to be placed in separate templates which provide a degree of separation between the markup and the data, WITHOUT using ![CDATA.

So, I have the following setup.

Source XML:

<xsl:template name="preContentHeader">
<tr><td><img src="j.jpg"></td>
<td align=left>

<xsl:template name="postContentFooter">

<xsl:template match="note">
<xsl:call-template name="preContentHeader"/>
<xsl:copy-of select="."/>
<xsl:call-template name="postContentFooter"/>

Resulting HTML: <table> <tr> <td><img src="j.jpg"></td> <td align=left>stuff</td> </tr></table>

Any ideas of how I can do this without using ![CDATA?

Thanks in advance,


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread