f:verbatim-numbered
f:verbatim-numbered — Returns true if the listing should be numbered.
Synopsis
| f:verbatim-numbered( | $context as element()) as xs:boolean |
Description
The f:verbatim-numbered() function returns true of
the specified verbatim listing should be numbered. This will be true if:
The
linenumberingattribute is specified and has the valuenumbered,the element’s name is listed in
$verbatim-numbered-elements, ora
dbprocessing instruction with averbatim-numberedpseudo-attribute that is true is specified.
There are two overriding conditions that will force the value to
be false: first, if the linenumbering attribute is specified and has the
value unnumbered, the listing will not be numbered.
Second if the listing has a
db processing instruction with a
verbatim-style pseudo attribute that specifies the “plain” style. Listings
in the plain style cannot be numbered, attempting to do so will generate
a warning message from the stylesheets.