<contrib>§changes-removed, customization, proofreading</contrib></author>
</authorgroup>
-<pubdate>2006-04-04</pubdate>
<pubdate>2006-03-01</pubdate>
<pubdate>2005-12-28</pubdate>
<pubdate>2005-10-27</pubdate>
the location of the standard DocBook V5.0 schema.
All of the examples are given in both RNG and RNC form.
<example xml:id="ex-empty"><title>Empty customization file</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
<!-- redefinitions of named patterns -->
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc" inherit = db
the original pattern or this new pattern is a valid match.
</para>
<example xml:id="ex-add-element-1"><title>Adding a new element by duplicating an existing one</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
<ref name="dbx.person"/>
</define>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[default namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc"
which would be messy.
</para>
<example xml:id="ex-add-element-2"><title>Adding new inline elements</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
<ref name="dbx.asm.inlines"/>
</define>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[default namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc"
because a <tag>book</tag> requires a <tag>title</tag>.
</para>
<example xml:id="ex-delete-element"><title>Deleting an element</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
</define>
</include>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc" inherit = db {
<varname>db.person.author.contentmodel</varname> so that
only authors who are persons can have the new elements.
<example xml:id="ex-modify-element"><title>Modifying the content model of an element</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
</interleave>
</define>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[default namespace = "http://docbook.org/ns/docbook"
namespace db = "http://docbook.org/ns/docbook"
optional attributes with the existing attributes on the list.
</para>
<example xml:id="ex-add-attr"><title>Adding attributes</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
</interleave>
</define>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc" inherit = db
elements. This shows some of the flexibility of RELAX NG, which
treats attributes and elements very consistently.
<example xml:id="ex-add-attr-2"><title>Adding attributes; alternate method</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
</interleave>
</define>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc" inherit = db
by defining that pattern as <varname>empty</varname>.
</para>
<example xml:id="ex-delete-attr"><title>Deleting an attribute</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
</define>
</include>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc" inherit = db {
you don't need.
</para>
<example xml:id="ex-modify-attr"><title>Deleting an attribute</title>
-<para>RNG</para>
<programlisting language="rng"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:db="http://docbook.org/ns/docbook"
ns="http://docbook.org/ns/docbook"
<value>large</value>
</define>
</grammar>]]></programlisting>
-<para>RNC</para>
<programlisting language="rnc"><![CDATA[namespace db = "http://docbook.org/ns/docbook"
include "docbook.rnc" inherit = db