[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Output source XML structure as escaped HTML


Subject: Re: [xsl] Output source XML structure as escaped HTML
From: "arser.abitu.ru" <arser@xxxxxxxx>
Date: Wed, 23 Jan 2002 10:34:41 +0300

Hello Matthew,

Wednesday, January 23, 2002, 5:25:50 AM, you wrote:

MJ> Hello all,

MJ> I want to take an XML source document and output it's structure into an HTML file as escaped text.

MJ> For example, I want to take this:

MJ> <root>
MJ>   <item/>
MJ>   <item>test</item>
MJ>   <item name="default"/>
MJ> </root>

MJ> And output this escaped text into an HTML file:

MJ> &lt;root&gt;
MJ>   &lt;item/&gt;
MJ>   &lt;item&gt;test&lt;/item&gt;
MJ>   &lt;item name="default"/&gt;
MJ> &lt;/root&gt;

Use <![CDATA[
 <root>
   <item/>
   <item>test</item>
   <item name="default"/>
 </root>
]]>

and you will get what u need.


-- 
Best regards,
 arser.abitu.ru                            mailto:arser@xxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml