See 9.7.2 in the ODF spec for inspiration.
