Subject: Re: [xsl] Fwd: xml/xslt line break From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sun, 20 Jul 2008 12:52:27 +0200 |
xml/xslt line break Hi all, I a, getting xml data from another app with '/n' between lines. The problem is that when this gets converted to HTML all of the line breaks in the CDATA section are lost, and it becomes one long line. Is there a way to format what's inside the CDATA tag to have <br> after each line?
One solution is to use the HTML pre element e.g. if you have <foo>Line1 Line 2 Line 3</foo> in your XML then you could transform it with <xsl:template match="foo"> <pre> <xsl:apply-templates/> </pre> </xsl:template>
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Fwd: xml/xslt line break, Taly | Thread | Re: [xsl] Fwd: xml/xslt line break, Taly |
Re: [xsl] What is the simplest meth, Mukul Gandhi | Date | Re: [xsl] What is the simplest meth, Martin Honnen |
Month |