On Monday, 09/27/2004 at 05:28 MST, M J <[EMAIL PROTECTED]> wrote:
> Hi All,
> Is there a way (e.g setting a flag) to tell xalan to ignore the CDATA
blocks
> that it sees?
No. XML in general doesn't consider the difference between CDATA and other
text semantically meaningful; XSLT in particular discards that distinction
on input.
Trying to treat CDATA boundaries as meaningful is a Very Bad Idea.
Personally, I'd consider that grounds for not accepting the job.
But if you absolutely must (because someone else handed you a broken
document design and you are completely unable to get it fixed), the best
suggestion I can offer is to write a SAX filter which discards the CDATA
sections, and pass the output of that to Xalan.
(The customer is not always right. Unfortunately the customer is always the
one with the money, and it can be hard to turn down money even when we know
we should.)