On 10.02.2020 16:01, Konrad Windszus wrote:
Hi, in the context of https://issues.apache.org/jira/browse/JCRVLT-407 I am currently looking into details how node names can be given in the System View format (https://docs.adobe.com/docs/en/spec/jcr/2.0/7_Export.html#7.2%20System%20View) Although not explicitly stated in the JSR, it seems that the values for the "sv:name" attribute should always be the qualified form (https://docs.adobe.com/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2.5.2%20Qualified%20Form) rather than the expanded form (https://docs.adobe.com/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2.5.1%20Expanded%20Form). That would also enforce every node namespace prefix to be registered in the XML (would be in line with 7.2.1 from the JSR). On the other hand for the qualified form it wouldn't make any sense to be forced to declare the namespace (with an unused prefix) in the SysView XML as well. Can someone shed some light on this? Thanks, Konrad
Well, the requirement to declare all namespaces upfront is kind of unrealistic. It implies that between the time when serialization starts and complete node traversal no new namespace prefixes are added. The spec seems to be vague and just says "JCR name"; I believe that includes expanded names as well. We may need more tests in Oak. Best regards, Julian
