Nesting XDIME 2 documents

It is possible to nest an XDIME 2 document (i.e. an html element and its descendants) inside the body of another XDIME 2 document. The nested html element is treated as if it was a block element; it can appear anywhere a block element can appear and behaves similarly, e.g. can be targeted at layouts, styled, etc. XDIME 2 documents can be nested to any depth, i.e. a sub-document can itself contain a sub-sub-document, and so on.

It is possible to nest an XDIME 2 document (i.e. an html element and its descendants) inside the body of another XDIME 2 document. The nested html element is treated as if it was a block element; it can appear anywhere a block element can appear and behaves similarly, e.g. can be targeted at layouts, styled, etc. XDIME 2 documents can be nested to any depth, i.e. a sub-document can itself contain a sub-sub-document, and so on.

Note:

If the existing MCS documentation refers to an html element it refers to the closest enclosing html element unless otherwise stated. For example, if a meta element applies to a document, e.g. because it has no about attribute or it is set to '#', then it applies to the closest enclosing html element.

The following restrictions apply to a nested XDIME 2 document:

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs"
  xmlns="http://www.w3.org/2002/06/xhtml2">
  <head>
    <title>Nested XDIME 2 Example</title>
  </head>
  <body>
    <p id="id1">Some text before the nested page.</p>
    <html>
      <head>
        <title>Required but ignored</title>
      </head>
      <body>
        <p id="id2">Some text inside the nested page.</p>
      </body>
    </html>
    <p id="id3">Some text after the nested page.</p>
  </body>
</html>

Related topics