From 13b7fe94e1ecb736ec60d39ae005c6bb68135bc8 Mon Sep 17 00:00:00 2001 From: Intelligent2013 Date: Sat, 7 Nov 2020 19:15:54 +0300 Subject: [PATCH] xslt updated for #1 --- .../resources/stepmod.base_xsl/common.xsl | 3 +- .../stepmod.base_xsl/res_doc/common.xsl | 25 +- .../stepmod.base_xsl/res_doc/express_code.xsl | 901 ++++++++++++++++++ .../stepmod.base_xsl/res_doc/express_link.xsl | 20 +- .../stepmod.base_xsl/res_doc/resource.xsl | 46 +- .../res_doc/sect_4_express.xsl | 6 +- .../res_doc/sect_a_short_names.xsl | 4 +- .../res_doc/sect_c_exp_schema.xsl | 227 +++++ src/main/resources/stepmod2mn.adoc.xsl | 272 ++++-- 9 files changed, 1398 insertions(+), 106 deletions(-) create mode 100644 src/main/resources/stepmod.base_xsl/res_doc/express_code.xsl create mode 100644 src/main/resources/stepmod.base_xsl/res_doc/sect_c_exp_schema.xsl diff --git a/src/main/resources/stepmod.base_xsl/common.xsl b/src/main/resources/stepmod.base_xsl/common.xsl index c86fc9c..6f18fec 100644 --- a/src/main/resources/stepmod.base_xsl/common.xsl +++ b/src/main/resources/stepmod.base_xsl/common.xsl @@ -1912,7 +1912,8 @@ width="20" height="20"/> --> - + + diff --git a/src/main/resources/stepmod.base_xsl/res_doc/common.xsl b/src/main/resources/stepmod.base_xsl/res_doc/common.xsl index 9c2039e..c569730 100644 --- a/src/main/resources/stepmod.base_xsl/res_doc/common.xsl +++ b/src/main/resources/stepmod.base_xsl/res_doc/common.xsl @@ -156,14 +156,35 @@ $Id: common.xsl,v 1.33 2008/05/21 20:50:25 abf Exp $ + <<>> - + - + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/stepmod.base_xsl/res_doc/express_code.xsl b/src/main/resources/stepmod.base_xsl/res_doc/express_code.xsl new file mode 100644 index 0000000..86011a2 --- /dev/null +++ b/src/main/resources/stepmod.base_xsl/res_doc/express_code.xsl @@ -0,0 +1,901 @@ + + + + + + + + + + + + + + + + + + + + + + + + + [[ + ]] + SCHEMA **; + + + + + + + + + + + + + + + + + END_SCHEMA;  --  + + + + + + + + + + + + + REFERENCE FROM + + + + + + + + + + ; + + + + ; + + + + + + + + USE FROM + + + + + + + + + + + ; + + + + ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   ( + + +    + + + + + + + + + + + AS  + + + , + + ) + + + + + + + + + + + + + + +
+ CONSTANT + + [[]] +    : := + + +     + + + + + + ; + + + + + END_CONSTANT; + + + + + +
+ + + + + + + +
+      + + + , + + + + + + ; + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [[]] + TYPE + + ** = + + + + ; + + + + ; + + + END_TYPE; + + + + + + + + + + + + + + + + + + + + + + GENERIC_ENTITY + + + + + + + + + + + + + + EXTENSIBLE + + + + GENERIC_ENTITY + + + SELECT + BASED_ON + + + + + + + + + + WITH +
+    ( + + + + + + + + )
+ + + + + EXTENSIBLE + + ENUMERATION + + BASED_ON + + + + + + + + + + + WITH + + + OF + + +
+    + + + + + +
+
+ + + + + + + + + + + + + + + + + + [[]] + ENTITY + ** + + + + ; + + + + + + + + END_ENTITY; + + + + + + + + ABSTRACT + + + + + + + + +
+  ABSTRACT SUPERTYPE + + OF  + + + + + + +
+ + +
+  SUPERTYPE OF + + + + + + +
+
+
+
+ + + +
+   SUBTYPE OF ( + + + + + ) +
+
+ + + + + + + + + +   + + + OPTIONAL + + + ;
+
+ + +SELF\ + + + + + + + + + + . + + + + + + + + + + + + + + DERIVE
+
+   + + + + +
+
+ + + + + + + + + + + INVERSE
+
+   + + + + + + + + ;
+
+ + + + + + + + + + + + + + + + + + + + + + UNIQUE
+
+   + +
+
+ + + + + + + + + + + + + + + + SELF\ + + + + + + + + + + + + + + + + + + + + + + + OPTIONAL + + + UNIQUE + + + + + + + + + + + + + + + + + + + WHERE
+
+   +
+
+ + + + + + + + + + + + +
+ FUNCTION +
+ : + + ; +
+ + + + END_FUNCTION; + +
+
+ + + + + + +  ( + : + + + + + ; + + + ) + + + + + + + + +
+      
+    
+
+
+ + + + + + + + + + + + + + + + +
+ + PROCEDURE + : + + ; + +
+ + END_PROCEDURE; + +
+ +
+ + + + + + + + + + + + +
+ RULE + + + FOR +
+ ();
+
+ + + + + + END_RULE; + +
+
+ + + + + + + + + + + + + +
+ SUBTYPE_CONSTRAINT + + FOR + + + + + ;
+ + +   ABSTRACT SUPERTYPE;
+
+ + +   TOTAL_OVER ( + + + + + + + + );
+
+ + + + +    + + + + + ;
+
+ END_SUBTYPE_CONSTRAINT;
+
+ + +
+
diff --git a/src/main/resources/stepmod.base_xsl/res_doc/express_link.xsl b/src/main/resources/stepmod.base_xsl/res_doc/express_link.xsl index 5e88244..2ec759f 100644 --- a/src/main/resources/stepmod.base_xsl/res_doc/express_link.xsl +++ b/src/main/resources/stepmod.base_xsl/res_doc/express_link.xsl @@ -47,7 +47,7 @@ This variable is overwritten when express_link.xsl is imported into another stylesheet. --> - + @@ -336,7 +336,8 @@ - + + @@ -446,8 +447,12 @@ - - + + + + + + @@ -1169,13 +1174,14 @@ - + + - + +
diff --git a/src/main/resources/stepmod.base_xsl/res_doc/resource.xsl b/src/main/resources/stepmod.base_xsl/res_doc/resource.xsl index f6c4e4e..1d3eb09 100644 --- a/src/main/resources/stepmod.base_xsl/res_doc/resource.xsl +++ b/src/main/resources/stepmod.base_xsl/res_doc/resource.xsl @@ -1398,6 +1398,7 @@ Purpose: + true EXPRESS::: @@ -1405,6 +1406,7 @@ Purpose: + true @@ -1417,7 +1419,7 @@ Purpose: --> - [#table_e1] + + + EXPRESS listings: + + @@ -1451,7 +1457,7 @@ Purpose: - | + + - + + @@ -1500,11 +1512,11 @@ Purpose: --> - | + - |=== - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + (* + + + Supersedes + + + *) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/stepmod2mn.adoc.xsl b/src/main/resources/stepmod2mn.adoc.xsl index 7abc42c..a643d19 100644 --- a/src/main/resources/stepmod2mn.adoc.xsl +++ b/src/main/resources/stepmod2mn.adoc.xsl @@ -25,6 +25,8 @@ + + @@ -196,93 +198,100 @@ - - [INFO] Processing Abstract ... - + - - - - [INFO] Processing Foreword ... - - - - - [INFO] Processing Introduction ... - - - - - [INFO] Processing Scope ... - - - - - [INFO] Processing Normative references ... - - - - - - - - [INFO] Processing Terms, definitions and abbreviated terms ... - - - - - - - - - - [INFO] Processing Section ... - - - - - - - [INFO] Processing Annex A Short names of entities ... - - - - [INFO] Processing Annex B Information object registration ... - + + [INFO] Processing Abstract ... + - - [INFO] Processing Annex C Computer interpretable listings ... - - - - [INFO] Processing Annex D EXPRESS-G diagrams ... - - - - - - [INFO] Processing Annex Technical discussion ... - - - - - - [INFO] Processing Annex Examples ... - - + + + [INFO] Processing Foreword ... + - - - [INFO] Annex Additional scope ... - - + + + [INFO] Processing Introduction ... + + + + + [INFO] Processing Scope ... + + + + + [INFO] Processing Normative references ... + + + + + + + + [INFO] Processing Terms, definitions and abbreviated terms ... + + + + + + + + + + [INFO] Processing Section ... + + + + + + + [INFO] Processing Annex A Short names of entities ... + + + + [INFO] Processing Annex B Information object registration ... + + + + [INFO] Processing Annex C Computer interpretable listings ... + + + + [INFO] Processing Annex D EXPRESS-G diagrams ... + + + + + + + [INFO] Processing Annex Technical discussion ... + + + + + + [INFO] Processing Annex Examples ... + + + + + + [INFO] Annex Additional scope ... + + + + + + [INFO] Processing Annex Change history ... + + + + + + - - - [INFO] Processing Annex Change history ... - - @@ -290,6 +299,67 @@ + + + + + + + + + + + + + + + + + + + * [[[ + + + + + + + + + + + + + + + ,repo:(current-metanorma-collection/ + + )]]] + , _ + + + + + + + + + + + + + + + + + + + _ + + + + + @@ -470,16 +540,52 @@ + - [] + + + [] + + + + + + + + + + + + + + + + << + + + + + + + + + + + + + + ,# + + >> +