# This version if only "d"
s|\s*exclude-result-prefixes\s*=\s*"d"\s*| |s;
# This version if d added to others at end
- s|(exclude-result-prefixes\s*=\s*".*?) d"|$1"|s;
+ s|(exclude-result-prefixes\s*=\s*".*?)\s+d"|$1"|s;
+ # This version if d added at beginning
+ s|(exclude-result-prefixes\s*=\s*")d\s+(.*?")|$1$2|s;
+ # This version if d added in middle
+ s|(exclude-result-prefixes\s*=\s*".*?)\s+d\s+(.*?")|$1$2|s;
# Convert stripNS to addNS
s|href="../common/addns.xsl"|href="../common/stripns.xsl"|sg;