From: Pierre Choffet Date: Thu, 19 Mar 2026 15:09:23 +0000 (-0400) Subject: Add tool to detect elements with duplicate label/description X-Git-Url: https://git.choffet.net/?a=commitdiff_plain;h=e3451a58dee57468540187dc611eb96447e9295e;p=wdef_tools.git Add tool to detect elements with duplicate label/description --- diff --git a/README b/README index 2217d9f..6bf2fb6 100644 --- a/README +++ b/README @@ -36,3 +36,6 @@ Description of the provided tools: - xslts/replace_id.xslt Change the wdef:id of an element and its references. + + - xslts/report_label_description_duplicates.xslt + Detect elements with duplicate labels/descriptions (this is illegal in Wikidata) diff --git a/xslts/report_label_description_duplicates.xslt b/xslts/report_label_description_duplicates.xslt new file mode 100644 index 0000000..7bdbb6e --- /dev/null +++ b/xslts/report_label_description_duplicates.xslt @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + : + In language " + + ", the label " + + " with description " + + " has + + occurrences. + + + + + + + +