diff --git a/make-includes/xslt_functions.make b/make-includes/xslt_functions.make index 44321b2..1024ab0 100755 --- a/make-includes/xslt_functions.make +++ b/make-includes/xslt_functions.make @@ -51,10 +51,15 @@ # uri: file:///missing.xsl # Result: null # +# Update (2007-07-11): Added fix for mysterious breakage on Chris's machine +# that occurred for no apparent reason. An extra / was being put on the +# front of the returned Windows path, e.g., /D:/blah/blah. Added a sed +# to remove it when necessary. +# # Arguments: # $(1) file name of item to be resolved, WITHOUT the "file:///" # -resolve_uri = `java org.apache.xml.resolver.apps.resolver -u file:///$(1) uri | ( grep 'Result: file:' || echo '::$(1)' ) | cut -d':' -f3-` +resolve_uri = `java org.apache.xml.resolver.apps.resolver -u file:///$(1) uri | ( grep 'Result: file:' || echo '::$(1)' ) | cut -d':' -f3- | sed -e 's|/\([A-Z]:\)|\1|'` ################################################################################