|
Subject: Embedding html in xml problem From: "Kerry Nice" <knice@xxxxxxxxxxxxxxx> Date: Wed, 30 Aug 2000 11:37:28 -0600 |
Hi,
I am trying to embed pregenerated html content into xml tags but I am
running into problems.
Basically, I want to have a top level xml document like:
<?xml version="1.0" standalone="no"?>
<portal>
<top> <html tags>some html stuff here</html tags> </top>
<left></left>
<content></content>
<right></right>
<bottom></bottom>
</portal>
Where I can put lots of html code between <top> and </top> (and all the rest
too). So in my xsl I can have something like:
<xsl:template match="top">
<table width="100%" border="0" height="30">
<tr>
<td>
<!-- whatever it takes to grab the values between the top tags,
value-of or whatever -->
</td>
</tr>
</table>
<xsl:call-template name="left"/>
<xsl:call-template name="bottom"/>
</xsl:template>
I can almost make it work if I enclose the stuff between the top tags in a
<![CDATA[ ]]>, but then
I run into problems. It ends up converting all the special characters, i.e.
< to < which doesn't help me at all. I tried using <xsl:text
disable-output-escaping="yes"> but I can't get it to process right.
Am I missing something here, or is there a better way to do this?
Thanks,
Kerry.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| XSL in Perl, Steve Morrison | Thread | RE: Embedding html in xml problem, Kerry Nice |
| XSL in Perl, Steve Morrison | Date | Re: New document: Requirements for , Joe English |
| Month |