html - How to insert XUL into a XHTML document -


I have an XHTML document and want to embed XUL widget in the document. What is the right XML syntax to do this?

  & lt ;! DOCTYPE HTML Public "- // W3C // DTD XHTML 1.0 Stronger // EN" "http: //www.w3 org / TR / xhtml1 / dTD / xhtml1-strict.dtd" & gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "en" lang = "en" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; / Head & gt; & Lt; Body & gt; Join XUL & lt; / Body & gt; & Lt; / Html & gt;  

add xmlns: xul = "http: //www.mozilla. Org / keymaster / gatekeeper / there.is.only.xul " your gt; Tag tag

Then & lt; Use xul: element & gt; , such as & lt; Xul: vbox & gt;

Edit

  & lt ;! DOCTYPE html public "- // w3c / / dttt xhtml 1.0 strict // n" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: xul = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xml: lang = " N "lang =" n "& gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Xul: vbox & gt; & Lt; / Xul: vbox & gt; & Lt; / Body & gt; & Lt; / Html & gt; Apart from this, I believe that there is no such a simple matter ... otherwise there will not be much talk about wrapping HTML in the prison (although sometimes it happens on the other side) 

Edit

While doing so, keep in mind some extra points:

  1. A valid xml type. Such as App / XML or Text / XML - Text / html (- The whole thread is readable)
  2. Valid XML should be.

There is nothing like a document with axle, which tolerates a certain degree of sloppiness while parsing HTML (unordered tags etc). (Thanks to Nicole for the first point)


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -