xsl-list
[Top] [All Lists]

[xsl] Required help in XSL transformation

2006-09-07 06:03:02
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
 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>