From 38fb6e867be7464f8b6a2892258981513da7766f Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Thu, 1 Mar 2018 14:58:20 +0100 Subject: [PATCH 1/5] Issue#6: Additional Schematron Rules for GeekoDoc * Check for spaces in @xml:id * Check for @xml:id of several lists which contain a title --- geekodoc/rng/geekodoc.sch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 geekodoc/rng/geekodoc.sch diff --git a/geekodoc/rng/geekodoc.sch b/geekodoc/rng/geekodoc.sch new file mode 100644 index 0000000..4f3f5e4 --- /dev/null +++ b/geekodoc/rng/geekodoc.sch @@ -0,0 +1,39 @@ + + + Schematron Schema for GeekoDoc + GeekoDoc Schematron + + + + + + + + + + + + + + General Checks + + No spaces in xml:id's! + + + + + All lists with a title should have a xml:id + + an with a title must have a xml:id attribute + + + an with a title must have a xml:id attribute + + + an with a title must have a xml:id attribute + + + a with a title must have a xml:id attribute + + + \ No newline at end of file From 943809704923f5c12d506f9682f3f134f341c00d Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Fri, 2 Mar 2018 12:30:56 +0100 Subject: [PATCH 2/5] Use s prefix instead of sch --- geekodoc/rng/geekodoc.sch | 70 +++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/geekodoc/rng/geekodoc.sch b/geekodoc/rng/geekodoc.sch index 4f3f5e4..3455799 100644 --- a/geekodoc/rng/geekodoc.sch +++ b/geekodoc/rng/geekodoc.sch @@ -1,39 +1,39 @@ - - Schematron Schema for GeekoDoc - GeekoDoc Schematron + + Schematron Schema for GeekoDoc + GeekoDoc Schematron - - - - - - - - - - + + + + + + + + + + - - General Checks - - No spaces in xml:id's! - - + + General Checks + + No spaces in xml:id's! + + - - All lists with a title should have a xml:id - - an with a title must have a xml:id attribute - - - an with a title must have a xml:id attribute - - - an with a title must have a xml:id attribute - - - a with a title must have a xml:id attribute - - - \ No newline at end of file + + All lists with a title should have a xml:id + + an with a title must have a xml:id attribute + + + an with a title must have a xml:id attribute + + + an with a title must have a xml:id attribute + + + a with a title must have a xml:id attribute + + + \ No newline at end of file From 0325a1a29b9e526e0ee4b2cf9066310a3b828e75 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Fri, 2 Mar 2018 12:31:32 +0100 Subject: [PATCH 3/5] Rename geekodoc.sch -> geekodoc5.sch --- geekodoc/rng/{geekodoc.sch => geekodoc5.sch} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename geekodoc/rng/{geekodoc.sch => geekodoc5.sch} (100%) diff --git a/geekodoc/rng/geekodoc.sch b/geekodoc/rng/geekodoc5.sch similarity index 100% rename from geekodoc/rng/geekodoc.sch rename to geekodoc/rng/geekodoc5.sch From c48ed9e94bd0df01e337ef22f6dd3a8bc85c515c Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Fri, 9 Mar 2018 13:11:19 +0100 Subject: [PATCH 4/5] Check more than 1 children in lists --- geekodoc/rng/geekodoc5.sch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/geekodoc/rng/geekodoc5.sch b/geekodoc/rng/geekodoc5.sch index 3455799..7fd8163 100644 --- a/geekodoc/rng/geekodoc5.sch +++ b/geekodoc/rng/geekodoc5.sch @@ -36,4 +36,20 @@ a with a title must have a xml:id attribute + + + Checks for amount of child elements in lists + + A procedure must contain more than one step + + + An orderedlist must contain more than one listitems + + + An orderedlist must contain more than one listitems + + + A simplelist must contain more than one member + + \ No newline at end of file From db929d0561fb61c566ee0ecb9989025309add89e Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Fri, 6 Apr 2018 14:40:06 +0200 Subject: [PATCH 5/5] Update README * Add $releasever for the repo URL to make it version independent * Use make instead of complicated steps --- README.md | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 170383f..239a890 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The following procedure can be used for openSUSE Leap 42.1: 1. Add the repository: ``` - $ sudo zypper ar https://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_42.3/devel:languages:python.repo + $ sudo zypper ar https://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_\$releasever/devel:languages:python.repo ``` 2. Install it: @@ -88,31 +88,10 @@ The executable can be found in `.env3/bin/rnginline`. 1. Update your GitHub repository. -2. Convert the official compact version into the XML version with trang: +2. Change the directory to `geekodoc/rng`. - ``` - $ trang geekodoc.rnc geekodoc5.rng - ``` - -3. Create the flat RNG version: - - ``` - $ rnginline geekodoc5.rng geekodoc5-flat.rng - ``` - -4. Optional: Cleanup and remove unnecessary namespaces: +3. Run `make`. - ``` - $ mv geekodoc5-flat.rng _flat.rng - $ xmllint -o geekodoc5-flat.rng --nsclean --format flat.rng - $ rm _flat.rng - ``` - -5. Optional: Create the compact version: - - ``` - $ trang geekodoc5-flat.rng geekodoc5-flat.rnc - ``` ## Supporting Vim