XML technologies / DocBook / Inline elements / Markup-specific elements

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

This category includes the following elements:

code

Similar to programlisting, but only within body text. Contains short code fragments, further specified by the attribute language:

<code language="python2">print "'%s' nicht gefunden!" % filename</code>

constant

A program or system constant, for example:

<constant>42</constant>

email

An email address:

<email>tux@example.com</email>

Depending on the publishing system, a link can be generated automatically using ( mailto).

literal

General text, similar to userinput or computeroutput.

markup

Contains a string of markup code.

<para>In TeX schreiben Sie eine Hochstellung so <markup>$x^2$</markup> und eine Tiefstellung so <markup>$x_2$</markup>.</para>

tag (DocBook 5 and later), sgmltag (DocBook 4 and earlier)

An XML or SGML markup construct:

<tag>book</tag> 
<tag class="attribute">linkend</tag>

The attribute namespace specifies the namespace of the tag or attribute. Use the attribute class to classify the content further:

attribute

The name of an XML attribute: xml:lang

attvalue

The value of an XML attribute: de

comment

An SGML comment: <!--...-->

element

An element name (default)

endtag

An end tag: </foo>

genentity

A general entity: &trade;

localname

The local part of a qualified name

namespace

A namespace: "http://docbook.org/ns/docbook"

numcharref

A character reference: &#x2122;

paramentity

A parameter entity such as %list.class;

pi

An SGML processing instruction: <!--..-->

prefix

The prefix of a qualified name: fo

sgmlcomment 

An SGML comment: <!--...-->
(The attribute value sgmlcomment in DocBook 4 was renamed in DocBook 5 to comment.)

starttag

A start tag such as <foo>

xmlpi

An XML processing instruction <?dbhtml ...?>

token

Specifies a unit of information.

uri

A Uniform Resource Identifier. Use the type attribute to classify the content further:

<uri type="xmlnamespace">http://docbook.org/ns/docbook</uri> 
<uri type="rddlnature">http://www.w3.org/TR/REC-xml.html#dt-unparsed</uri> 
<uri type="rddlpurpose">http://www.rddl.org/purposes/natures#DTD</uri>

  

back to top