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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With