From 20637681e50e5864be49502dfaee8435b34cbecf Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Wed, 27 Jun 2007 21:24:30 +0000 Subject: [PATCH] Fixed addNS substitution in variable named profile-content to use the mode="profile". --- releasetools/xslns-build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/releasetools/xslns-build b/releasetools/xslns-build index c426b8744..af3779b06 100755 --- a/releasetools/xslns-build +++ b/releasetools/xslns-build @@ -255,8 +255,14 @@ sub nsfilter { # Convert stripNS to addNS s|href="../common/stripns.xsl"|href="../common/addns.xsl"|sg; + # Convert stripNS to addNS for profiling stylesheets + s|(]*name="profiled-content").*?mode="profile".*?()| Adding DocBook namespace to version 4 DocBook document |sg; + s|(\s*\n*)(\s*)(.*?()|$1$2$3 test="namespace-uri\(\*\[1\]\) != 'http://docbook.org/ns/docbook'">\n$2 \n$2 \n$2 \n$2 \n$2 Note\n$2 \n$2 \n$2 namesp. add\n$2 \n$2 \n$2 added namespace before processing\n$2 \n$2 \n$2 \n$2 \n$2 \n$2 \n$2$4|sg; + # Remove the "Hack!" message --> + s|||sg; + # Add namespace d to exclude-result-prefixes if ( $_ =~ /exclude-result-prefixes\s*=/ ) { -- 2.40.0