<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" style="xslt-mode" id="mal2html.block.mode">
 <info>
  <link type="guide" xref="mal2html-block" group="modes"/>
  <link type="guide" xref="modes" group="mal2html"/>
  <desc>Process Mallard elements in block mode.</desc>
  <revision version="1.0" date="2010-06-03" status="final"/>
 </info>
 <title>mal2html.block.mode</title>
 <p><code>$restricted</code>: Whether this is restricted block mode.</p>
 <p>This mode is applied to elements in block context. It should be called by
 templates for pages, sections, and block container elements. Certain elements
 may appear in both block an inline mode, and the processing expectations for
 those elements is different depending on context.</p>
 <p>Implementations of this mode should generally output a wrapper div and process
 the child elements, either in <code xref="mal2html.block.mode">mal2html.block.mode</code> or <code xref="mal2html.inline.mode">mal2html.inline.mode</code>,
 or using special processing for particular content models.</p>
 <p>When this mode encounters unknown content, templates in the same mode are
 applied to the children, but the <code>$restricted</code> parameter is set to <sys>true</sys>.
 When <code>$restricted</code> is <sys>true</sys>, unknown block elements are ignored. This is
 in accordance with the Mallard specification on fallback block content.</p>
</page>
