XML technologies / DocBook / The DocBook XSL stylesheets / Working with shared templates / Checking properties

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

The following table summarizes useful format-independent templates. They check, for example, whether a node is a section or whether a graphic is acceptable. Further templates are listed in DocBook XSL Stylesheets Developer Reference: Common Template Reference.

Table: Templates for checking properties (common/common.xsl)

template

Synopsis and description

is.component

bool is.component (node?)
checks whether the specified node is a structural element (1 = yes, 0 = no)

is.section

bool is.section (node?)
checks whether the specified node is a section element (1 = yes, 0 = no)

is.acceptable.mediaobject

bool is.acceptable.mediaobject (node)
checks whether the supplied object is recognized as a graphic (1 = yes, 0 = no)

  

back to top