From 8b1ca4e43f23e53a9d9351c001b02d7d3d95c76e Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Tue, 6 Dec 2005 18:56:52 +0000 Subject: [PATCH] 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. --- .../com/nwalsh/saxon/ImageIntrinsics.java | 2 +- xsl/profiling/profile-mode.xsl | 51 ++++++++++++++++++- xsl/profiling/profile.xsl | 8 ++- 3 files changed, 58 insertions(+), 3 deletions(-) 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"> - + + + + + + +