xml.parse-counter-set.xpl Maven / Gradle / Ivy
The newest version!
Extract individual counter manipulations from 'counter-set', 'counter-reset' and
'counter-increment' properties.
The 'counter-set', 'counter-reset' and 'counter-increment' properties of elements in the
input must be declared in css:counter-set, css:counter-reset and css:counter-increment
attributes and must conform to
http://braillespecs.github.io/braille-css/#h4_manipulating-counters-the-counter-increment-counter-set-and-counter-reset-properties.
The 'counters' option must be a space separated list of counter names, or the word
'#all'.
The 'exclude-counters' option must be a space separated list of counter names, or the
empty string. The option is ignored if the 'counters' option is also specified (and has
a value other than '#all').
Elements in the output will get a css:counter-set-*, css:counter-reset-* or
css:counter-increment-* attribute for each counter manipulation in the element's
css:counter-set, css:counter-reset and css:counter-increment attributes whose counter
name is specified in the 'counters' option, or not specified in the 'exclude-counters'
option if the 'counters' option is '#all'. Other counter manipulations are retained in
the css:counter-set, css:counter-reset and css:counter-increment attributes. For
example, if the 'counters' option is 'chapter', the attribute
css:counter-increment="part chapter" is split into the attributes
css:counter-increment="part" and css:counter-increment-chapter="1". Any attributes in
the input with the same name will be overwritten.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy