XML technologies / DocBook / Conditional elements (profiling) / Processing steps

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

Jiří Kosek developed DocBook stylesheets for document profiling. The following figure shows how profiling works:

 process=

Figure: Processing a DocBook document with profiling

The profiling mechanism shown above has two steps:

  1. Profiling: Transform the document with a profiling stylesheet, passing parameters that define the conditions for each variant.

  2. Transformation: Convert the profiling result into the output format.

Two documents participate in this process:

  1. Original document: Write the text in DocBook and add profiling attributes where appropriate. Criteria can apply to a chapter, paragraph or even a command. Such elements are retained only if their criterion is met.

  2. Profiling result: Profiling produces a document containing only elements with no criterion or with a matching criterion. If an original element’s condition is not met, profiling removes it.

These steps did not describe document validation. This is explained in Profiling and validation more detail.

  

back to top