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

Annotations

Schemas can be annotated with human or machine readable documentation and other information:

<xsd:element name="author">
  <xsd:annotation>
    <xsd:documentation xmlns:xhtml="http://www.w3.org/1999/xhtml">
       the author of the recipe, 
       see <xhtml:a href="authors.xml">this list</xhtml:a> of authors
    </xsd:documentation>
    <xsd:appinfo xmlns:fp="http://foodprocessor.org">
       <fp:process type="117"/>
    </xsd:appinfo>
  </xsd:annotation>
  ...
</xsd:element>

Note that annotations can be structured, as opposed to simple <!-- ... --> XML comments.

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