From: Pierre Choffet Date: Fri, 24 Dec 2021 05:24:12 +0000 (-0500) Subject: Add canonicalize stylesheet X-Git-Url: https://git.choffet.net/?a=commitdiff_plain;h=de886df807bf4d2c075855cab9ebec54947a9812;p=wdef_tools.git Add canonicalize stylesheet --- 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +