<?xml version="1.0" encoding="UTF-8"?><bookxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="book.xsd"><title>Introduction to Java</title><chapter><title>Introduction</title><para>Java is a programming language</para></chapter><chapter><title>The virtual machine</title><para>We also call it the runtime system.</para></chapter><chapter><title>Annotations</title><para>Annotations provide a means to add meta information.</para><para>This is especially useful for framework authors.</para></chapter></book>

.

No. 11

Book documents with mixed content and itemized lists

Q:

Extend the first version of book.xsd to support the
following features:

Within a <chapter> node
<para> and <itemizedlist> elements in arbitrary
order shall be allowed.

<itemizedlist> nodes shall
contain at least one <listitem>.

<listitem> nodes shall be
composed of one or more para or <itemizedlist> elements.

Within a <para> we want to
be able to emphasize text passages (mixed
content).

A <listitem> contains a
sequence of at least one <para>
or <itemizedlist> child node.
The latter gives rise to nested lists. We find a similar
construct in HTML namely unnumbered lists defined by
<ul><li>... constructs allowing
for nested elements as well.

No. 12

book.xsd and languages

Q:

We want to extend our schema from Q: by allowing an author to define
the language to be used within the whole or parts of the
document in question. Add an attribute lang to
all relevant elements like e.g. <para
lang="es">. An XML editor may use this attribute to
activate corresponding dictionaries for spell checking.