[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Embedding html in xml problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|