From de886df807bf4d2c075855cab9ebec54947a9812 Mon Sep 17 00:00:00 2001 From: Pierre Choffet Date: Fri, 24 Dec 2021 00:24:12 -0500 Subject: [PATCH] Add canonicalize stylesheet --- README | 23 ++++++++++++++++++++++ xslts/canonicalize.xslt | 43 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 README create mode 100644 xslts/canonicalize.xslt diff --git a/README b/README new file mode 100644 index 0000000..ba9f599 --- /dev/null +++ b/README @@ -0,0 +1,23 @@ +wdef_tools - Collection of tools to work with Wdef files. + +Repository: https://git.choffet.net/?p=wdef_tools.git + + +These tools are designed to work on valid Wdef files (see this repository for +more information: https://git.choffet.net/?p=wdef_schemas.git ). Behavior when +applying on non-compliant file is undefined. + +Runtime dependencies are: + - Bash - https://www.gnu.org/software/bash/ + Shell script interpreter + + - Wikibase-cli - https://github.com/maxlath/wikibase-cli + Interface to Wikidata operations + + - Xmlstarlet - http://xmlstar.sourceforge.net/ + XSD and XSLT processor + + +Description of the provided tools: + - xslts/canonicalize.xslt + Return a wdef under its normal form. diff --git a/xslts/canonicalize.xslt b/xslts/canonicalize.xslt new file mode 100644 index 0000000..ae31a64 --- /dev/null +++ b/xslts/canonicalize.xslt @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.47.0