delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

The problem is, XML interprets these to be child nodes and therefore I lose all the line breaks, tables, and so forth in that block of text http://bbs.prog365.com/images/sites/biggrin.gif
I've looked around, but can't seem to find a workaround. Any ideas?


Hello,
I have a PHP script which automatically puts together a text message, including <br /> and various other XHTML commands, and inserts that into an XML node to be formatted using XSLT. XSLT then inserts the data when it is needed. The problem is, XML interprets these to be child nodes and therefore I lose all the line breaks, tables, and so forth in that block of text
I've looked around, but can't seem to find a workaround. Any ideas?
Author Hot threads

TOP

You need to put such code inside an CDATA sectionen.
For example
Code:
  1. <yournode>
  2. <![CDATA[<strong>Some text</strong><br/><br/>
  3. little more text]]>
  4. </yournode>
Copy Code

TOP

or you can use <xsl:copy-of select="yournode" /> to, er, copy the child nodes but the xhtml would have to be well-formed.



The problem is, XML interprets these to be child nodes and therefore I lose all the line breaks, tables, and so forth in that block of text http://bbs.prog365.com/images/sites/biggrin.gif
I've looked around, but can't seem to find a workaround. Any ideas?

TOP

Back Forum