Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Clarification of primary input to p:xslt with XSLT 3: can it be an XDM array or map #357
In his talk at XmlPrague (now online at https://so.nwalsh.com/2020/02/15/xproc-30) Norm, when presenting the XSLT 3 code sample to transform JSON (a JSON/XDM 3.1 array of maps) to CSV, made the following comment:
I asked on Norm's blog whether the remark about the impossibility to use a map as the primary input to
On digging further, I also found the test case https://test-suite.xproc.org/tests/ab-xslt-016.html by Achim which seems to do what Norm says is not possible, namely it does seem to use a JSON map as the primary input.
Furthermore looking at https://spec.xproc.org/master/head/xproc/#json-documents it says:
So based on Achim's test case and based on that definition of a JSON document I think the remark by Norm, based on what his implementation allows, suggests that his implementation is not yet correct in terms of dealing with XDM maps or arrays as the primary input of an XSLT 3 stylesheet in the