diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index aa81b4b7..ef5e1352 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -98,10 +98,24 @@ Configuration must be wrapped in a root-element like this: *labwc* parses XML in an element/attribute agnostic way. This is a design decision to increase config file flexibility and keep code simple. In practical -terms, this means that `c` is equivalent to ``. +terms, this means that `c` is usually equivalent to ``. +However, there are some caveats: +- In menu.xml, the attributes `id` and `label` *must* be expressed as attributes + rather than as separate child tags. +- Ordering of attributes can sometimes be singificant. For example, when setting + fonts via attributes rather than children, + + -Note: This does not apply to all aspects of menu.xml, specifically the -attributes id, label and execute. + will set a font for active window titles, while + + + + will set a font as if `place` were unspecified, because `name` and `size` will be + processed before `place`. + +In general, it is recommended that attributes not be used to collapse more than +one level of the configuration hierarchy. The following three are therefore treated the same: