From 35deee3aeec116b3b2e266d1e18164b3512831f8 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 25 Jul 2019 12:51:49 -0400 Subject: [PATCH] Fix #110 --- step-json/src/main/xml/specification.xml | 6 ++-- step-json/src/main/xml/steps/join-json.xml | 26 ------------------ step-json/src/main/xml/steps/json-join.xml | 32 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 29 deletions(-) delete mode 100644 step-json/src/main/xml/steps/join-json.xml create mode 100644 step-json/src/main/xml/steps/json-join.xml diff --git a/step-json/src/main/xml/specification.xml b/step-json/src/main/xml/specification.xml index 42590675..69f8c7e9 100644 --- a/step-json/src/main/xml/specification.xml +++ b/step-json/src/main/xml/specification.xml @@ -30,7 +30,7 @@ -This specification describes the p:join-json step +This specification describes the p:json-join step for XProc 3.0: An XML Pipeline Language. @@ -51,7 +51,7 @@ An XML Pipeline Language published by the W3C. Introduction This specification describes the -p:join-json XProc step. +p:json-join XProc step. A machine-readable description of these steps may be found in steps.xpl. @@ -63,7 +63,7 @@ steps is assumed; for background details, see . - +
Step Errors diff --git a/step-json/src/main/xml/steps/join-json.xml b/step-json/src/main/xml/steps/join-json.xml deleted file mode 100644 index 0e7fe744..00000000 --- a/step-json/src/main/xml/steps/join-json.xml +++ /dev/null @@ -1,26 +0,0 @@ - -
-p:json-join - -The p:json-join step joins a sequence of JSON documents into a single JSON document (an array). -If the sequence on port source is empty, the empty sequence is returned on port result. - - - - - - - -If option flatten-arrays is false, a member in the array is created for each document in -the sequence appearing on portsource. Therefore the produced array with have the same number of -members as the number of documents appearing on port source. However if flatten-arrays is -true, for each member of an array appearing at the top level of a JSON document -on port source a new member in the resulting array will be created. - -
diff --git a/step-json/src/main/xml/steps/json-join.xml b/step-json/src/main/xml/steps/json-join.xml new file mode 100644 index 00000000..8a24698b --- /dev/null +++ b/step-json/src/main/xml/steps/json-join.xml @@ -0,0 +1,32 @@ + +
+p:json-join + +The p:json-join step joins a sequence of JSON +documents into a single JSON document (an array). If the sequence on +port source is empty, the empty sequence is returned on +port result. + + + + + + + +If option flatten-arrays is +false, a member in the array is created for each +document in the sequence appearing on portsource. +Therefore the produced array with have the same number of members as +the number of documents appearing on port source. However +if flatten-arrays is true, for each +member of an array appearing at the top level of a JSON document on +port source a new member in the resulting array will be +created. + +