This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Output source XML structure as escaped HTML


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@abitu.ru


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]