From 5ecf7897493ef6d14d3e6b8c44f1496068726973 Mon Sep 17 00:00:00 2001 From: Alexander Dyuzhev Date: Wed, 24 Aug 2022 22:09:41 +0300 Subject: [PATCH] sts2mn xsl updated for preferred and alt terms, metanorma/metanorma-iso#765 --- README.adoc | 24 ++++++++++++------------ pom.xml | 2 +- src/main/resources/sts2mn.adoc.xsl | 5 +++++ src/main/resources/sts2mn.xsl | 6 ++++++ 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/README.adoc b/README.adoc index b68dd21a..5b99bb36 100644 --- a/README.adoc +++ b/README.adoc @@ -14,7 +14,7 @@ You will need the `maven` build tool and `make`. [source,sh] ---- -java -jar mnconvert-1.20.0.jar xml_file --check-type xsd-niso +java -jar mnconvert-1.21.0.jar xml_file --check-type xsd-niso ---- - `--check-type`, `-ct` - Check against XSD NISO (value xsd-niso), DTD ISO (dtd-iso), DTD NISO (dtd-niso) @@ -26,7 +26,7 @@ or check any XML against XSD, DTD. [source,sh] ---- -java -jar mnconvert-1.20.0.jar xml_file --validation-against +java -jar mnconvert-1.21.0.jar xml_file --validation-against ---- - `--validation-against`, `-va` - Check against specified DTD ot XSD @@ -37,7 +37,7 @@ java -jar mnconvert-1.20.0.jar xml_file --validation-against [source,sh] ---- -java -jar mnconvert-1.20.0.jar xml_file [options] +java -jar mnconvert-1.21.0.jar xml_file [options] ---- - `--xsl-file`, `-s` - path to XSL file, optional @@ -52,7 +52,7 @@ java -jar mnconvert-1.20.0.jar xml_file [options] [source,sh] ---- -java -jar mnconvert-1.20.0.jar xml_file [options] +java -jar mnconvert-1.21.0.jar xml_file [options] ---- - `--xsl-file`, `-s` - path to XSL file, optional @@ -67,7 +67,7 @@ java -jar mnconvert-1.20.0.jar xml_file [options] [source,sh] ---- -java -jar mnconvert-1.20.0.jar xml_file [options] +java -jar mnconvert-1.21.0.jar xml_file [options] ---- - `--xsl-file`, `-s` - path to XSL file, optional @@ -78,7 +78,7 @@ java -jar mnconvert-1.20.0.jar xml_file [options] [source,sh] ---- -java -jar mnconvert-1.20.0.jar docx_file [options] +java -jar mnconvert-1.21.0.jar docx_file [options] ---- - `--xsl-file`, `-s` - path to XSL file, optional @@ -88,7 +88,7 @@ java -jar mnconvert-1.20.0.jar docx_file [options] === 6. Convert from IEEE STL XML to Metanorma AsciiDoc. ---- -java -jar mnconvert-1.20.0.jar xml_file [options] +java -jar mnconvert-1.21.0.jar xml_file [options] ---- - `--xsl-file`, `-s` - path to XSL file, optional @@ -100,7 +100,7 @@ java -jar mnconvert-1.20.0.jar xml_file [options] [source,sh] ---- -java -jar mnconvert-1.20.0.jar xml_file --output-format ieee --validation-against +java -jar mnconvert-1.21.0.jar xml_file --output-format ieee --validation-against ---- - `--xsl-file`, `-s` - path to XSL file, optional @@ -118,7 +118,7 @@ e.g. [source,sh] ---- -java -jar target/mnconvert-1.20.0.jar tests/iso-tc154-8601-1-en.xml --output tests/iso-tc154-8601-1-en.out.xml +java -jar target/mnconvert-1.21.0.jar tests/iso-tc154-8601-1-en.xml --output tests/iso-tc154-8601-1-en.out.xml ---- NOTE: Input XML format (Metanorma, STS ISO/NISO, IEEE or XML2RFC) determines programmatically by root element of input file: + @@ -151,7 +151,7 @@ Update version in `pom.xml`, e.g.: ---- org.metanorma mnconvert -1.20.0 +1.21.0 Metanorma XML to NISO STS XML two-directional converter ---- @@ -162,8 +162,8 @@ Tag the same version in Git: [source,xml] ---- -git tag v1.20.0 -git push origin v1.20.0 +git tag v1.21.0 +git push origin v1.21.0 ---- Then the corresponding GitHub release will be automatically created at: diff --git a/pom.xml b/pom.xml index 655e2247..37b3e05b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.metanorma mnconvert - 1.20.0 + 1.21.0 Metanorma XML to NISO STS XML two-directional, IEEE to Metanorma ADOC, Metanorma XML to IEEE XML, and XML2RFC to Metanorma Asciidoc IETF converter jar https://www.metanorma.org diff --git a/src/main/resources/sts2mn.adoc.xsl b/src/main/resources/sts2mn.adoc.xsl index e5aaeac9..431b2963 100644 --- a/src/main/resources/sts2mn.adoc.xsl +++ b/src/main/resources/sts2mn.adoc.xsl @@ -2285,6 +2285,7 @@ alt deprecated + preferred alt :[ @@ -2295,6 +2296,10 @@ + + + + [%metadata] diff --git a/src/main/resources/sts2mn.xsl b/src/main/resources/sts2mn.xsl index 58a0ac0f..86e1fc17 100644 --- a/src/main/resources/sts2mn.xsl +++ b/src/main/resources/sts2mn.xsl @@ -1563,6 +1563,8 @@ preferred admitted deprecates + preferred + admitted preferred @@ -1588,6 +1590,10 @@ + + + +