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

Re: Outputting "entire nodes" 2

Subject: Re: Outputting "entire nodes" 2
From: Ragnar Schierholz <raschi@xxxxxxxxx>
Date: Fri, 23 Jun 2000 11:14:20 -0500
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
Description: S/MIME Cryptographic Signature

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.