[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Poorly Formed HTML inside XSL Stylesheet

Subject: Poorly Formed HTML inside XSL Stylesheet
From: "Kevin Holbrook" <kevinholbrook@xxxxxxxxxxx>
Date: Mon, 26 Nov 2001 21:23:46 +0000
kevin holbrook
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:
<note>stuff</note>

My XSL:
<xsl:template name="preContentHeader">
	<xsl:text><![CDATA[
<table>
<tr><td><img src="j.jpg"></td>
<td align=left>
	]]></xsl:text>
</xsl:template>

<xsl:template name="postContentFooter">
	<xsl:text><![CDATA[
</td></tr></table>
	]]></xsl:text>
</xsl:template>

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


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,

-Kevin

_________________________________________________________________
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.