> -----Original Message-----
> From: Norman Walsh [mailto:]
> Sent: den 21 april 2006 18:15
> And now the "right" approach seems both much simpler and much
> more obviously correct: simply make sure that the root element of the
> document has an appropriate xml:base attribute.
>
> That's where the base needs to be specified, and as you say, the code
> for dealing with images already knows how to walk up the tree looking
> for ancestor xml:base attributes.
>
> I've made those changes and tested them and indeed they seem to cause
> the right thing to happen. And they shouldn't interfere with the
> $keep.relative.image.uris parameter either.
I found a problem with the latest stripns.xsl, I'm afraid.
On Windows, saxon:systemId() returns this (as an example):
file:/c:/doctypes/docbook/imgtest-ng.xml
This results in the following xml:base attribute on the root element of the
stripped document:
/c:/doctypes/docbook/
The leading slash is clearly not right.
And if the leading slash wasn't there, would it really be a valid URI (since
there is no 'file:///' prefix)?
/MJ