Manuel Mall wrote:
Firstly you have HTML embedded as text in your XML. This is why all the HTML tags are escaped with the < and > entities. This means your stylesheet will not process these as normal tags but sees them simply as text.

Your best bet will be: attack the problem at the source: it is considered (very) bad practice to use escaped XML inside XML (which is basically what this is about). It has many many drawbacks. If you can instruct your source system to construct XML with bits of HTML without escaping it, you will be much closer to an easy and manageable solution.

I can't tell you how to get the comment text unescaped into your XML as that depends on how the XML is constructed in your environment.

Change the processor to be Saxon 8.9 and use saxon:evaluate(). But (see above), this is dangerous and not recommended. Even more so if you, as Manuel says, cannot guarantee that the HTML is 100% well-formed XML once unescaped.


Cheers,
-- Abel Braaksma

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to