开发者

XSLTProcessor outputting pink error block to be suppressed

I'm getting an error block rendered by my xslt and I need to stop it because I simply don't have any control over the content of the XML going into it. I don't care if it can't process successfully, but I do care that is huge error message not be displayed at the top of my output.

The code generating the problem is in this related question:

Safari not processing HTML from XSL the same

But, specifically, it says (in a big pink box):

This page contains the following errors:

error on line 64 at column 332: Opening and ending tag mismatch: IMF line 0 and p

Below is a 开发者_StackOverflowrendering of the page up to the first error.

The page is fine, I just don't want the error message because, ultimately, there is nothing I can do about it.


XSLT is designed for processing XML. If you give it something that isn't XML, then you can expect it to complain loudly. If you want to process something that isn't XML, don't use XSLT.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜