From 464c140210fed14006c80219215731aac5dd4ffc Mon Sep 17 00:00:00 2001 From: Pierre Choffet Date: Tue, 11 Jan 2022 15:56:33 -0500 Subject: [PATCH] Add replace_id.xslt This stylesheet can be used to replace a wdef:id value by another. It will replace references to the element at the same time. --- README | 3 +++ xslts/replace_id.xslt | 59 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 xslts/replace_id.xslt diff --git a/README b/README index 0368030..9006401 100644 --- a/README +++ b/README @@ -24,3 +24,6 @@ Description of the provided tools: - xslts/canonicalize.xslt Return a wdef under its normal form. + + - xslts/replace_id.xslt + Change the wdef:id of an element and its references. diff --git a/xslts/replace_id.xslt b/xslts/replace_id.xslt new file mode 100644 index 0000000..774422a --- /dev/null +++ b/xslts/replace_id.xslt @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.47.0