xsl-list
[Top] [All Lists]

Re: [xsl] Problem with < and > in front and after CDATA section

2008-12-06 11:37:37
HTML I want
<p>
<strong>Title text</strong>
<br />
<em>( Date: pubDate )</em>
<br />
description text .. <a href="URL">.. details</a>
</p>

Resulting HTML source code:
<p><strong>Title text</strong>
<br />
<em>( Date: pubDate )</em>
<br />
<![CDATA[description text]]>.. <a href="URL" title=".. details">.. 
details</a></p>

Resulting text on screen:
Title text
( Date: pubDate )
.. .. details

Looks to me like you're getting exactly what you want, at least if
your output is XHTML (and is read as XHTML by the browser). If your
browser thinks it is reading HTML, it might ignore the CDATA marked
section.


--~------------------------------------------------------------------
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>
--~--