Re: [xsl] Problem retaining HTML tags during XSL transformation

Subject: Re: [xsl] Problem retaining HTML tags during XSL transformation
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 11 Jan 2007 11:40:11 +0100
Ambika.Das@xxxxxxxxxxxxxxxxxx wrote:
Hi David,

I am trying to retain the HTML tags like <p> and <pre>. At the same
time, I want to add a <br> tag in case of line break and '""' symbol for
'"'. Finally the whole output should be CSV compliant.

That is precisely what my solution does for you. Have you tried it? It works for me (I used Saxon 6.5). If you go for another solution, you better choose "text" as output, instead of "html". In addition, if you cannot use the node-set function, you'll have to stick to the recursive call-template approach for your string replacement, however, the xml-to-text technique can remain the same (but you may want to retain attributes, too, which I did not implement for you, but you can easily add it yourself).


Cheers
-- Abel Braaksma
  http://www.nuntia.nl

Current Thread