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 diff --git a/geekodoc/rng/geekodoc5.sch b/geekodoc/rng/geekodoc5.sch new file mode 100644 index 0000000..7fd8163 --- /dev/null +++ b/geekodoc/rng/geekodoc5.sch @@ -0,0 +1,55 @@ + + + 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 + + + + + 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