Subject: [xsl] Poorly Formed HTML inside XSL Stylesheet From: "Kevin Holbrook" <kevinholbrook@xxxxxxxxxxx> Date: Mon, 26 Nov 2001 21:23:46 +0000 |
I am in the process of writing stylesheets to transform structured XML documents into an existing HTML structure.
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>
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Comparing a value, Michael Kay | Thread | RE: [xsl] Poorly Formed HTML inside, Michael Kay |
Re: [xsl] Comparing a value, David Carlisle | Date | RE: [xsl] Comparing a value, Michael Kay |
Month |