From 723d9fbdd5b3fc686b275531d7ba8dc2a296b3f3 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Fri, 21 Apr 2006 14:40:10 +0000 Subject: [PATCH] After namespace stripping, the source document is the temporary tree created by the stripping process and it has the wrong base URI for relative references. Earlier versions of this code used to try to fix that by patching the elements with relative @fileref attributes. That was inadequate because it calculated an absolute base URI without considering that there might be xml:base attributes already in effect. It seems obvious now that the right thing to do is simply to put the xml:base on the root of the document. And that seems to work. --- xsl/common/stripns.xsl | 123 +++++++++++++++++++++++++++-------------- 1 file changed, 83 insertions(+), 40 deletions(-) diff --git a/xsl/common/stripns.xsl b/xsl/common/stripns.xsl index 1a764b8ff..a24d87c9e 100644 --- a/xsl/common/stripns.xsl +++ b/xsl/common/stripns.xsl @@ -7,6 +7,89 @@ exclude-result-prefixes="db ng exsl saxon" version='1.0'> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -186,46 +269,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- 2.40.0