<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <em>Modular Namespaces (MNS)</em> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.thaiopensource.com/relaxng/mns.html" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI">http://www.thaiopensource.com/relaxng/mns.html</anchor-external></li></ul><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end></p><blockquote><p>Suppose we want to validate an XHTML document that uses RDF within its head element. The following would do the job:<pre class="XML">&lt;rules xmlns=&quot;http://www.thaiopensource.com/ns/mns&quot; startMode=&quot;xhtml&quot;&gt;
  &lt;validate ns=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;
            schema=&quot;rdfxml.rng&quot;
            inModes=&quot;rdf&quot;
            useMode=&quot;anything&quot;/&gt;
  &lt;validate ns=&quot;http://www.w3.org/1999/xhtml&quot;
            schema=&quot;xhtml.rng&quot;
            inModes=&quot;xhtml&quot;
            prune=&quot;elements&quot;&gt;
    &lt;context useMode=&quot;rdf&quot;&gt;
      &lt;element name=&quot;head&quot;/&gt;
    &lt;/context&gt;
  &lt;/validate&gt;
  &lt;lax inModes=&quot;anything&quot;/&gt;
&lt;/rules&gt;</pre></p></blockquote><p>(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> [sage])</p></body></html>