[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Problem retaining HTML tags during XSL transformation
Subject: RE: [xsl] Problem retaining HTML tags during XSL transformation From: <Ambika.Das@xxxxxxxxxxxxxxxxxx> Date: Thu, 11 Jan 2007 09:12:30 +0530 |
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. Thanks and Regards, A P Das -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Wednesday, January 10, 2007 10:00 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Problem retaining HTML tags during XSL transformation XSLT never handles "tags" only element nodes. You are using string operations such as xsl:value-of, substring-before etc, when you pass a node to a function that requires a string it takes teh string value of teh node, that is, the character data of all the descendants of the node, ignoring any element, attribute, markup. Ypu haven't said what you are trying to do, but it appears to be to replace a newline by a br element. in which case you want to apply that operation to text nodes, matching text() not to the elem element node. David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem retaining HTML ta, Abel Braaksma | Thread | Re: [xsl] Problem retaining HTML ta, Abel Braaksma |
[xsl] Apache FOP 0.93 Released, J.Pietschmann | Date | Re: [xsl] document($RssXmlFeed) not, Web Developer |
Month |