From 8d6680dd8a20bbce13432f32250f9d77789d2964 Mon Sep 17 00:00:00 2001 From: Wendell Piez Date: Tue, 16 Mar 2021 16:44:37 -0400 Subject: [PATCH] Addresses usnistgov/OSCAL#844 --- .../xslt-M4/compose/metaschema-collect.xsl | 26 +++++++++++++++---- toolchains/xslt-M4/metaschema-compose.xpl | 4 +-- .../schema-gen/make-json-schema-metamap.xsl | 10 +++++-- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/toolchains/xslt-M4/compose/metaschema-collect.xsl b/toolchains/xslt-M4/compose/metaschema-collect.xsl index ad3e385a8..e8d5bb9ce 100644 --- a/toolchains/xslt-M4/compose/metaschema-collect.xsl +++ b/toolchains/xslt-M4/compose/metaschema-collect.xsl @@ -80,12 +80,28 @@ - + + + + + + + + + + + + + + + + + - + { ancestor::METASCHEMA[1]/short-name }-{ @ref } diff --git a/toolchains/xslt-M4/metaschema-compose.xpl b/toolchains/xslt-M4/metaschema-compose.xpl index 00f45d0ec..6407d5fd1 100644 --- a/toolchains/xslt-M4/metaschema-compose.xpl +++ b/toolchains/xslt-M4/metaschema-compose.xpl @@ -30,8 +30,8 @@ - - + + diff --git a/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl b/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl index 5850d8f85..03eb1f75d 100644 --- a/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl +++ b/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl @@ -116,8 +116,14 @@ #/definitions/{ $lineage => string-join('-') } - - + + + + + + + +