From: Norman Walsh Date: Sun, 17 Oct 2004 21:44:07 +0000 (+0000) Subject: Make sure the xlink namespace occurs on the root and only on the root X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a777583731d6d9bcbbc579d5030a756fc7d389c6;p=docbook-dsssl Make sure the xlink namespace occurs on the root and only on the root --- diff --git a/docbook/relaxng/tools/cleanup.pl b/docbook/relaxng/tools/cleanup.pl index 79cb8ccba..7c4922835 100644 --- a/docbook/relaxng/tools/cleanup.pl +++ b/docbook/relaxng/tools/cleanup.pl @@ -18,6 +18,11 @@ while (<>) { s/\s+xmlns:s=([\"\']).*?\1\s+/ /g; s/\s*xmlns:s=([\"\']).*?\1\s*//g; + s/\s+xmlns:xlink=([\"\']).*?\1\s+/ /g; + s/\s*xmlns:xlink=([\"\']).*?\1\s*//g; + + s//<\1 xmlns:s=\"http:\/\/www.ascc.net\/xml\/schematron\">/g; s/<(ctrl:\S+\s+.*?)(\/?>)/<\1 xmlns:ctrl=\"http:\/\/nwalsh.com\/xmlns\/schema-control\/\"\2/g;