3 ms·
When you declare an element (or attribute) in an XML instance that isn't already defined as a body of the primary document or root schema this declared entity i
by austincheney 10y ago
When you declare an element (or attribute) in an XML instance that isn't already defined as a body of the primary document or root schema this declared entity is available only to a limited scope. That limited scope is the element of declaration and its descendant nodes. Typically such declarations occur as the result of referencing a foreign artifact against a namespace.
You don't really see this capability in the common forms of HTML, but you can if you run the HTML as an XML serialization (regardless of the HTML doctype in the document). The execution context can be changed in many cases by sending a document with an XML specific media type or in some cases by changing the file extension from .html to .xhtml.