wcm-io-frontend / aem-clientlib-generator

Creates configuration files for AEM ClientLibs and synchronizes assets.
Apache License 2.0
62 stars 32 forks source link

serializationFormat:xml should write XMLs which follow the formatting rules of FileVault #45

Open kwin opened 2 years ago

kwin commented 2 years ago

The DocView XMLs written should comply with the rules from FileVault (compare with https://jackrabbit.apache.org/filevault-package-maven-plugin/format-xml-mojo.html).

The rules are:

kwin commented 2 years ago

All rules except for the last one are already followed in version 1.8.0, but the attributes are not yet sorted alphabetically in https://github.com/wcm-io-frontend/aem-clientlib-generator/blob/1082c6713a7d9411c34dfa968aebb74dcd956406/lib/clientlib.js#L210-L231.

In addition the namespace declaration of cq is superfluous as no JCR property for client libraries use that namespace.