From: Jirka Kosek Date: Tue, 6 Dec 2005 18:56:52 +0000 (+0000) Subject: An attemp to fix base URIs when profiling is done and document is not in the current... X-Git-Tag: release/1.79.1~6^2~3076 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc80f2e72083f658cb41da24a2521642cc5c3c88;p=docbook-dsssl An attemp to fix base URIs when profiling is done and document is not in the current directory. This seems to work on my Windows machine, but I would be interested how it behaves in unix environment. URL handling in Java is very sensitive to such things. --- diff --git a/xsl/extensions/saxon643/com/nwalsh/saxon/ImageIntrinsics.java b/xsl/extensions/saxon643/com/nwalsh/saxon/ImageIntrinsics.java index 2eb069f54..9f6b9e419 100644 --- a/xsl/extensions/saxon643/com/nwalsh/saxon/ImageIntrinsics.java +++ b/xsl/extensions/saxon643/com/nwalsh/saxon/ImageIntrinsics.java @@ -57,7 +57,7 @@ public class ImageIntrinsics implements ImageObserver { URL imageUrl = null; - if (imageFn.startsWith("http:") || imageFn.startsWith("ftp:")) { + if (imageFn.startsWith("http:") || imageFn.startsWith("ftp:") || imageFn.startsWith("file:")) { try { imageUrl = new URL(imageFn); } catch (MalformedURLException mue) { diff --git a/xsl/profiling/profile-mode.xsl b/xsl/profiling/profile-mode.xsl index b006475a8..25afa0631 100644 --- a/xsl/profiling/profile-mode.xsl +++ b/xsl/profiling/profile-mode.xsl @@ -1,6 +1,11 @@ + + + @@ -147,7 +152,51 @@ and $revision.ok and $revisionflag.ok and $role.ok and $security.ok and $userlevel.ok and $vendor.ok and $attribute.ok"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/profiling/profile.xsl b/xsl/profiling/profile.xsl index fe1def355..c4678213e 100644 --- a/xsl/profiling/profile.xsl +++ b/xsl/profiling/profile.xsl @@ -2,7 +2,13 @@ version="1.0"> - + + + + + + +