[xsl] Required help in XSL transformation

Subject: [xsl] Required help in XSL transformation
From: <Ambika.Das@xxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Sep 2006 18:36:08 +0530
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