]> granicus.if.org Git - docbook-dsssl/commit
After namespace stripping, the source document is the temporary tree
authorNorman Walsh <ndw@nwalsh.com>
Fri, 21 Apr 2006 14:40:10 +0000 (14:40 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 21 Apr 2006 14:40:10 +0000 (14:40 +0000)
commit723d9fbdd5b3fc686b275531d7ba8dc2a296b3f3
treeb0ff33fb677e66832ca60caa96696d4f9381adcb
parentfb7fbb925e87eb33b5e11a8483aae8e517596699
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