XML technologies / DocBook / Conditional elements (profiling) / Summary
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
The key points of this chapter were:
Profiling is a method for filtering DocBook elements to obtain a reduced document.
DocBook has attributes available on every element. Some are used for profiling, known as profiling attributes.
Profiling attributes let a DocBook document contain many variants. Profiling filters the document to produce one variant.
A profiling attribute can contain one or more values separated by semicolons. These correspond to the document’s variants.
Profiling attributes can be combined.
An element without a profiling attribute applies to all variants and is always retained. An element with a profiling attribute is retained only when the requested variant matches the attribute’s value.
Poorly placed profiling attributes can remove an element and cause a validation error.
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top