to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

Schema inclusion and redefinition

No less than 3 mechanisms are available: XInclude is not used...

Example:

<schema xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:b="http://businesscard.org"
        targetNamespace="http://businesscard.org">

  <import namespace="http://www.w3.org/1999/xhtml" schemaLocation="xhtml.xsd"/>

  <redefine schemaLocation="phone.xsd">
    <element name="phone">
      ...
    </element>
  </redefine>  

  ...
</schema>

Here, a schema for XHTML is imported together with phone.xsd (which is assumed to contain a description of phone numbers) and its description of phone is redefined.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next