[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Outputting "entire nodes" 2
Hi Hakan, >> My XML-file looks like this: >> >> <HtmlTable><![CDATA[ >> <table border=0 cellspacing=0> >> ... >> ... >> </table> >> ]]></HtmlTable> >> >> And I want the output to be: >> >> <table border=0 cellspacing=0> >> ... >> ... >> </table> Try something like this: <xsl:template match="HtmlTable"> <xsl:value-of select="." disable-output-escaping="yes" /> </xsl:template> I use it for a pretty similar purpose and it works. Within an XML element the user is supposed to be able to input HTML formatted text, so I want everything to be unchanged. The only downpart of it is, that the built-in XSLT-processor in IBM's Xeena doesn't properly convert the line breaks for a Windows system. Running a conversion from UNIX to DOS (like e.g. UltraEdit can do) everything is pretty and nice. In order to use the HTML output on a web server of course, this is not even necessary. HTH, Ragnar Attachment:
smime.p7s
|
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
|