ARCWAY Cockpit

DocBook Reference

This reference guide describes all XML elements, which can be used to structure an ARCWAY Cockpitdocument.

  1. Usable Elements
  2. Example
  3. XML-Elements
  4. Coding of special characters in XML

Usable Elements

The following tags of the whole DocBook XML-language are supported.

Examples

The XML-section below presents a simple example of the most important elements.

<book>
   <title>book's title</title>
   <subtitle>book's subtitle</subtitle>
   <chapter>
     <title>capter's title</title>
     <section>
       <title>section's title</title>
       <para>
         This is a paragraph ....
       </para>
       <para>
         <table>
           <tgroup cols="2">
             <colspec colwidth="35mm"/>
             <colspec colwidth="70mm"/>
             <thead>
               <row>
               <entry>column 1</entry><entry>column 2</entry>
               </row>
             </thead>
             <tbody>
               <row>
               <entry>cell 1.1</entry><entry>cell 1.2</entry>
               </row>
               <row>
               <entry>cell 2.1</entry><entry>cell 2.2</entry>
               </row>
             </tbody>
           </tgroup>
         </table>
       </para>
       <para>
         This paragraph contains a list
         <simplelist type="inline">
           <member>list element 1</member>
           <member>list element 2</member>
           <member>list element 3</member>
         </simplelist>
       </para>
     </section>
   </chapter>
</book>

XML elements

<book>

A "book"-tag is the root element of every report-template.

sub-nodes

super-nodes

none

attributes

none

<chapter>

A "capter"-tag defines a chapter within a report.

sub-nodes

super-nodes

attributes

none

<section>

A "section"-tag defines a section within a chapter.

sub-nodes

super-nodes

attributes

none

<para>

A "para"-tag defines a paragraph within a chapter or a section.

sub-nodes

super-nodes

attributes

<table>

A "table"-tag defines a table within a chapter or a section.

sub-nodes

super-nodes

attributes

example

<table>
   <tgroup cols="2">
     <colspec colwidth="35mm"/>
     <colspec colwidth="70mm"/>
     <thead>
       <row>
         <entry>column 1</entry><entry>column 2</entry>
       </row>
     </thead>
     <tbody>
       <row>
         <entry>cell 1.1</entry><entry>cell 1.2</entry>
       </row>
       <row>
         <entry>cell 2.1</entry><entry>cell 2.2</entry>
       </row>
     </tbody>
   </tgroup>
</table>

<tgroup>

A "tgroup"-tag groups the content a table-content.

sub-nodes

super-nodes

attributes

cols: defines number of table-columns

<colspec>

A "colspec"-tag defines a table-column.

sub-nodes

none

super-nodes

attributes

colwidth: width of a table-column. Can be specified absolut (e.g. 10mm) or relative (e.g. 3*).

Beispiel

<colspec colwidth="35mm"/>

<thead>

A "thead"-tag definies the head of a table (multiple lines are possible).

The Word format view will print table's head automatically bold.

sub-nodes

super-nodes

attributes

none

example

<thead>
  <row>
    <entry>table-head column 1</entry>
    <entry>table-head column 2</entry>
    <entry>table-head column 3</entry>
  </row>
</thead>

<tbody>

A "tbody"-tag definies the body of a table (normally multiple lines).

sub-nodes

super-nodes

attributes

none

example

<tbody>
  <row>
    <entry>cell column 1</entry>
    <entry>cell column 2</entry>
    <entry>cell column 3</entry>
  </row>
</tbody>

<tfoot>

A "thead"-tag definies the foot of a table (multiple lines are possible).

sub-nodes

super-nodes

attributes

none

Beispiel

<tfoot>
  <row>
    <entry>cell column 1</entry>
    <entry>cell column 2</entry>
    <entry>cell column 3</entry>
  </row>
</tfoot>

<row>

A "row"-tag definies a row of a table.

sub-nodes

super-nodes

attributes

none

Beispiel

<row>
  <entry>cell column 1</entry>
  <entry>cell column 2</entry>
  <entry>cell column 3</entry>
</row>

<entry>

A "entry"-tag definies the cells of a row.

sub-nodes

super-nodes

attributes

example

<entry>This is a cell.</entry>

<simplelist>

A "simplelist"-tag definies a simple list.

sub-nodes

super-nodes

attributes

type: until now the value inline is supported. Elements are ordered one-after-another, sperated by commas.

example

<simplelist type="inline">
  <member>list-element 1</member>
  <member>list-element 2</member>
</simplelist>

<member>

A "member"-tag definies an element of a list.

sub-nodes

super-nodes

attributes

none

Beispiel

<member>This is a list-element.</member>

<title>

A "title"-tag definies the title of a book, chapter or section.

sub-nodes

super-nodes

attributes

none

Beispiel

<title>This is a title.</title>

<subtitle>

A "subtitle"-tag definies the sub-title of a book, chapter or section.

sub-nodes

super-nodes

attributes

none

example

<subtitle>This is a sub-title.</subtitle>

<link>

A "link"-tag definies a hyperlink to a file or website.

sub-nodes

super-nodes

attributes

linkend: target URL

example

<link linked="http://www.arcway.com">Homepage of ARCWAY AG</linkend>

<ulink>

A link that addresses its target by means of a URL (Uniform Resource Locator).

sub-nodes

super-nodes

attributes

url: URL specifies the Uniform Resource Locator that is the target of the ULink.

example

<ulink url="http://www.arcway.com">ARCWAY AG Homepage</ulink>

<anchor>

A spot in the document.

sub-nodes

none

super-nodes

attributes

none

example

The anchor element<anchor id="example.anchor.1"/> is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target.

Coding of special characters in XML

If you write your own report template, please note, that special characters have to be encoded.
Use the report template header, to set the character encoding that is used by your text editor. Thus a manual encoding of all special characters that are supported by your editor is not necessary.
However, special characters that can not be handled by the character encoding of your editor can still be encoded.

Verwandte Themen:
The Report Template Header

See also the german web page:
Zeichenreferenz auf SELFHTML