Forum Moderators: open
<article>
<num></num>
<title>this is a the opening page</title>
<desc>A starter page</desc>
<info>ACTUAL HTML CODE INCLUDING <a> LINKS and <br>tags</info>
</article>
<article>
<num>1</num>
<title>Article 1</title>
<desc>a sample article</desc>
<info>HTML with <img><p><br><hr> basically any HTML</info>
</article>
how do I include this html (which will be generated from a WYSIWYG form passed through PHP to write this file)
i think XML will typically try to parse these <HTML> tags, how do i keep them as actual HTML when they are parsed by the XSL style sheet?
<info><![CDATA[HTML with <img><p><br><hr> basically any HTML]]></info>
The parser will completely ignore everything after <![CDATA[ until it encounters ]]> , so will not be able to parse any XML elements inside.
Alternatively, I suppose you could escape the troublemaking characters or maybe wrap it in <xsl:text>, but I think the whether and how would be processor-dependent.