Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross-browser XML Data Islands that can contain script tags

I'm interested in embedding SCXML, an XML application for describing Statecharts, into HTML. Internet Explorer has what are known as "XML Data Islands", which provide an elegant solution to this problem. Alternatively, IE9 and most modern non-IE browsers allow content to be served as XHTML, which allows mixing different document types in order to create compound documents by using XML namespaces. Furthermore, there is this advice which I found on Mozilla's wiki which seems to offer an HTML5-approach (I use that term extremely loosely here), to XML Data Islands.

The Mozilla approach would seem to provide the best overall technique for embedding XML content in an HTML page. The problem is that it does not work if the embedded XML content contains a "</script>" tag, which is a part of the SCXML grammar.

Is there an elegant, cross-browser method to embed arbitrary XML content in an HTML page, including that which contains script tags?

like image 385
jbeard4 Avatar asked Nov 15 '11 05:11

jbeard4


1 Answers

Process and a rest of SCXML alone – ask ID/IDREF so that we know that partial of a SCXML relates to and put it in a removed block.

like image 84
Abdullah Babu Kalam Avatar answered Oct 30 '22 20:10

Abdullah Babu Kalam