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

Required help in XSL transformation

Subject: Required help in XSL transformation
From: <Ambika.Das@xxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Sep 2006 18:36:08 +0530
 Required help in XSL transformation
Hi All,

I want to transform the following XML data into text format. But I want to
retain the HTML tags which will be required for further processing.

<?xml version="1.0" encoding="UTF-8" ?>
<elem id="1234" date="14 Aug 2006" time="13:36">

<title>Sample Title</title>
<text>
<p>    This is some data </p>
<p>     </p>
<p>    This is some special characters &lt;AHLN.AS&gt; </p>
<p>    A group of students have gone to picnic. </p>
<p>     </p>
<PRE>    ** This is another special tag


  </PRE></text>
</story>

The output is required in delimited format.

The requirement is that the new lines will be replaced by <br> tag and the
double quotes will get converted to a special character.

The output required is as follows.

Elem Id, News Details\r\n
1234, detailed data with character replacement\r\n

Any clues how to implement the same?

Thanks & Regards,
Ambika Prasad Das
 

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.