Join GitHub today
Clarify serialization in p:document-properties-map #608
- We didn’t specify the namespace URI for the
- What if a map or array contains XML nodes, in particular documents or elements, as values? Then a JSON serialization would not be useful.
Given that maps or arrays as document properties might not be that common, or if they are used, pipeline authors who are interested in these map or array values will probably prefer to invoke
p:document-property() anyway, I could also live with the following alternative. It gives implementers the freedom to just omit map or array values:
It is implementation-defined whether document property values that consist of maps or arrays are included in the document properties document at all, and if they are included, how they are represented. If a property value is a map or an array, an
xsi:typeattribute must be given, and the
xsi:typeattribute value must start with
array, respectively. This way, consumers of the document properties document can choose to invoke the
p:document-property()function for the key in question in order to retrieve the property value.
Implementation-defined is fine by me.
We could just stipulate "