Hi,
in the context of https://issues.apache.org/jira/browse/SLING-10243 I am 
currently trying to convert JSON Descriptor Files 
(https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html#json-descriptor-files)
 to Enhanced Docview XML (http://jackrabbit.apache.org/filevault/docview.html).

I want to leverage 
https://github.com/apache/sling-org-apache-sling-contentparser-api for parsing 
the JSON Descriptor Files and I am wondering how to best deal with namespaces.
Neither 
https://github.com/apache/sling-org-apache-sling-contentparser-api/blob/master/src/main/java/org/apache/sling/contentparser/api/ContentHandler.java
 nor 
https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html#json-descriptor-files
 mentions namespaces but the example uses certain namespace prefixes.

It doesn't seem mandatory though to define the used prefixes in the 
Sling-Nodetypes bundle header, so do we just assume that all repositories use 
the same prefixes? 
IMHO only namespace URI are globally unique but not necessarily the namespace 
prefixes.
JCR itself only defines 4 prefixes: 
https://docs.adobe.com/content/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.5.1%20Namespace%20Registry

As (DocView) XML requires to explicitly declare the used namespaces I wonder 
which table to use as basis?
Should I just take the mapping from the Sling Starter?

Thanks for any input,
Konrad

Reply via email to