Contents
Index
Search

2. A configuration for the "Simple Section" document type.

This chapter describes how to write a configuration for the "Simple Section" document type:

  • The root element of this kind of document is a section. A section starts with a title. It may contain one or more paragraphs or tables. It may also contain nested sections. A paragraph contains text in addition to bold, italic, literal, break and image elements.

  • The namespace used for the "Simple Section" document type is "http://www.xmlmind.com/ns/sect".

We'll describe 3 variants of the same configuration, one based on a DTD, one based on a W3C XML schema and one based on a RELAX NG schema.

These sample configurations are found in XXE_install_dir/doc/configure/samples/:

dtd_section_config/

The DTD variant.

xsd_section_config/

The W3C XML Schema variant.

rng_section_config/

The RELAX NG variant.