Use odf.OdfUtils.parseLength and odf.Namespaces.lookupNamespaceURI instead of duplicated code.