Oxygen XML Author plugin Author allows you to
declare some elements to be foldable (collapsible). This is especially useful when
working with large documents organized in logical blocks, editing a large DocBook article or
book for instance. Oxygen XML Author plugin marks the foldable content with a small blue triangle. When you hover with your mouse
pointer over this marker, a dotted line borders the collapsible content. The following
contextual actions are available:
- Folds all the elements except the
- Folds the elements indented with one
level inside the current element.
Unfolds all child elements of the currently selected element.
- Unfolds all elements in
the current document.
- Toggles the state of the
To define the element whose content can be folded by the user, you must use the property:
. To define the elements that are folded by default, use
Note: The -oxy-folded property
works in conjunction with the -oxy-foldable property. Thus, the
folded property is ignored if the -oxy-foldable property
is not set on the same element.
When collapsing an element, it is useful to keep some of its content visible, like a short
description of the collapsed region. The property -oxy-not-foldable-child
used to identify the child elements that are kept visible. It accepts as value an element name
or a list of comma separated element names. If the element is marked as foldable
) but it doesn't have the property
or none of the specified non-foldable children
exists, then the element is still foldable. In this case the element kept visible when folded
will be the before
Note: Deprecated properties
foldable, not-foldable-child, and
folded are also supported.
Folding DocBook Elements
All the elements below can have a title child element and are considered
to be logical sections. You mark them as being foldable leaving the
title element visible.