From 7da7c5cb8102f0537ff2c3ace0d80e50aa54d609 Mon Sep 17 00:00:00 2001 From: Intelligent2013 Date: Sun, 30 Jun 2024 19:12:50 +0000 Subject: [PATCH] xslt update based on metanorma/mn-native-pdf@3dc70d4a28fa39d7864d894c3c81cd0b1871f702 --- lib/isodoc/iso/iso.amendment.xsl | 233 ++++++++++++++---- lib/isodoc/iso/iso.international-standard.xsl | 233 ++++++++++++++---- 2 files changed, 368 insertions(+), 98 deletions(-) diff --git a/lib/isodoc/iso/iso.amendment.xsl b/lib/isodoc/iso/iso.amendment.xsl index 9d42ae8b..ba0378f2 100644 --- a/lib/isodoc/iso/iso.amendment.xsl +++ b/lib/isodoc/iso/iso.amendment.xsl @@ -810,16 +810,36 @@ + + START updated_xml + + + + + End updated_xml + DEBUG: processing time msec. + + + + START updated_xml_with_pages + + + + + END updated_xml_with_pages + DEBUG: processing time msec. + + @@ -1111,6 +1131,11 @@ + + START xalan:nodeset($updated_xml_with_pages) for sections + + + @@ -1274,6 +1299,11 @@ + + END xalan:nodeset($updated_xml_with_pages) for sections + DEBUG: processing time msec. + + @@ -1339,6 +1369,9 @@ + + @@ -1353,15 +1386,36 @@ + + + + + + @@ -8227,6 +8281,8 @@ center + + @@ -8285,6 +8341,8 @@ left + + @@ -15670,7 +15728,14 @@ --> + + @@ -16122,89 +16187,159 @@ _.\ + (^([A-Za-z0-9_.\\]+)$) keep-together_within-line + ###### + ###/### - + + + + [^\r\n\t\f\v \<>\u3000-\u9FFF] + ((\b(({1,3}\/+)|(+\/{1,3}))\b)|(\/{1,3})\b) - - ###### - ###/### - - - - - - - - + [^\s\u3000-\u9FFF] + ((\b(({1,3}\.+)|(+\.{1,3}))\b)|(\.{1,3})\b) + + + + + + + + + + + + + + + + + + + + + + + ( + + + | + + ) + + + + + + + + + - - + + + - + + + + + + + + + + + + + + + + + + + + + - + + - + + + + + + + + + + - + + - - - - [^\r\n\t\f\v \<>\u3000-\u9FFF] - ((\b(({1,3}\/+)|(+\/{1,3}))\b)|(\/{1,3})\b) - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - [^\s\u3000-\u9FFF] - ((\b(({1,3}\.+)|(+\.{1,3}))\b)|(\.{1,3})\b) - + - - - - - - - + + + + + + + + - + - + diff --git a/lib/isodoc/iso/iso.international-standard.xsl b/lib/isodoc/iso/iso.international-standard.xsl index 9d42ae8b..ba0378f2 100644 --- a/lib/isodoc/iso/iso.international-standard.xsl +++ b/lib/isodoc/iso/iso.international-standard.xsl @@ -810,16 +810,36 @@ + + START updated_xml + + + + + End updated_xml + DEBUG: processing time msec. + + + + START updated_xml_with_pages + + + + + END updated_xml_with_pages + DEBUG: processing time msec. + + @@ -1111,6 +1131,11 @@ + + START xalan:nodeset($updated_xml_with_pages) for sections + + + @@ -1274,6 +1299,11 @@ + + END xalan:nodeset($updated_xml_with_pages) for sections + DEBUG: processing time msec. + + @@ -1339,6 +1369,9 @@ + + @@ -1353,15 +1386,36 @@ + + + + + + @@ -8227,6 +8281,8 @@ center + + @@ -8285,6 +8341,8 @@ left + + @@ -15670,7 +15728,14 @@ --> + + @@ -16122,89 +16187,159 @@ _.\ + (^([A-Za-z0-9_.\\]+)$) keep-together_within-line + ###### + ###/### - + + + + [^\r\n\t\f\v \<>\u3000-\u9FFF] + ((\b(({1,3}\/+)|(+\/{1,3}))\b)|(\/{1,3})\b) - - ###### - ###/### - - - - - - - - + [^\s\u3000-\u9FFF] + ((\b(({1,3}\.+)|(+\.{1,3}))\b)|(\.{1,3})\b) + + + + + + + + + + + + + + + + + + + + + + + ( + + + | + + ) + + + + + + + + + - - + + + - + + + + + + + + + + + + + + + + + + + + + - + + - + + + + + + + + + + - + + - - - - [^\r\n\t\f\v \<>\u3000-\u9FFF] - ((\b(({1,3}\/+)|(+\/{1,3}))\b)|(\/{1,3})\b) - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - [^\s\u3000-\u9FFF] - ((\b(({1,3}\.+)|(+\.{1,3}))\b)|(\.{1,3})\b) - + - - - - - - - + + + + + + + + - + - +