From 801f75c92066e90f89aa651be9bd5274f45a9b4a Mon Sep 17 00:00:00 2001 From: Octavian Nadolu Date: Tue, 13 Mar 2018 14:42:26 +0200 Subject: [PATCH 1/2] Add support for localization in Schematron based on diagnostics #40. --- .../code/iso_schematron_message_xslt2.xsl | 27 +-- ..._schematron_multilingual_message_xslt2.xsl | 157 ++++++++++++++++++ .../iso_schematron_skeleton_for_saxon.xsl | 4 +- trunk/schematron/code/iso_svrl_for_xslt2.xsl | 19 ++- 4 files changed, 189 insertions(+), 18 deletions(-) create mode 100644 trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl diff --git a/trunk/schematron/code/iso_schematron_message_xslt2.xsl b/trunk/schematron/code/iso_schematron_message_xslt2.xsl index b3ade50..6af4be7 100644 --- a/trunk/schematron/code/iso_schematron_message_xslt2.xsl +++ b/trunk/schematron/code/iso_schematron_message_xslt2.xsl @@ -40,6 +40,9 @@ THE SOFTWARE. xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> + + + @@ -51,14 +54,18 @@ THE SOFTWARE. - - - - - ( - / - ) - - + + + + + + + + + + + ( + / + ) + \ No newline at end of file diff --git a/trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl b/trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl new file mode 100644 index 0000000..6b19a11 --- /dev/null +++ b/trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [#] + + + + + + [#] + [] + + + + + + \ No newline at end of file diff --git a/trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl b/trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl index d18f216..1daff42 100644 --- a/trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl +++ b/trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl @@ -1986,6 +1986,7 @@ which require a preprocess. + @@ -2149,7 +2150,8 @@ which require a preprocess. - + + diff --git a/trunk/schematron/code/iso_svrl_for_xslt2.xsl b/trunk/schematron/code/iso_svrl_for_xslt2.xsl index 373270d..f7ed2d9 100644 --- a/trunk/schematron/code/iso_svrl_for_xslt2.xsl +++ b/trunk/schematron/code/iso_svrl_for_xslt2.xsl @@ -161,6 +161,9 @@ THE SOFTWARE. necessary for your system. --> + + + @@ -378,8 +383,10 @@ THE SOFTWARE. - - + + + + @@ -405,9 +412,6 @@ THE SOFTWARE. - - - @@ -581,6 +585,7 @@ THE SOFTWARE. + From 716ae1fb366d4258e61ba3ea2ebed5e5a60d424b Mon Sep 17 00:00:00 2001 From: Octavian Nadolu Date: Wed, 14 Mar 2018 12:26:10 +0200 Subject: [PATCH 2/2] I added some explanatory comments to the file iso_schematron_multilingual_message_xslt2 file --- ...so_schematron_multilingual_message_xslt2.xsl | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl b/trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl index 6b19a11..267548a 100644 --- a/trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl +++ b/trunk/schematron/code/iso_schematron_multilingual_message_xslt2.xsl @@ -32,7 +32,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + -