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

HTML Tags in XML

Subject: HTML Tags in XML
From: "Neelima Adusumilli" <neelima.adusumilli@xxxxxxxxx>
Date: Thu, 4 May 2006 16:55:52 +0530
html tags in xml
Hi all,
I have an XML file as follows:

<?xml version="1.0"?>
<planets>
  <planet>
     <Name>Mercury</Name>
     <info>
        <table>
           <tr>
             <td>Smallest Planet</td>
             <td>Closest to Sun</td>
           </tr>
        </table>
     </info>
  </planet>

  <planet>
      <Name>Earth</Name>
      <info> This is the planet we all live on </info>
  </planet>
</planets>

There is no particular pattern in info field.  But whatever is given
as the value of info, will be in html.

Is there a way to use XSL and generate the following html code...

<html>
  <head>
     Planets
  </head>
  <body>
     <h1>Mercury</h1>
     <table>
        <tr>
           <td>Smallest Planet</td>
           <td>Closest to Sun</td>
       </tr>
     </table>
     <h1>Earth</h1>
     This is the planet we all live on
  </body>
</html>

Can some body help me with this? I need to get the content/value of
<info> as it is (even though it is html) and put it in the resultant
html file using XSL.

Thanks,
Neelima

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.