mcs:unit

Purpose

Container for an XDIME 2 content fragment, which need not be well formed, for example a reusable header or footer.

Examples

If the code in the first example is saved as test.xdime, then the urid:fetch reference in the second example will add its content to the main body of the page.

<mcs:unit xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs">
  <p>Copyright 2008 All rights reserved.</p>
</mcs:unit>
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:urid="http://www.volantis.com/xmlns/marlin-uri-driver">
  <head>
    <title>mcs:unit</title>
  </head>
  <body>
    <div>
      <urid:fetch href="test.xdime"/>
    </div>
  </body>
</html>

Related topics