From 1e7ad8e3b13c8c0e50de40509b83dd6b09ecba34 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Thu, 29 Apr 2010 10:10:47 +0000
Subject: [PATCH] Fixed for code generation problem on Windows with JDK7. Issue #2296
---
opendj-sdk/opends/resource/admin/preprocessor.xsl | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/opendj-sdk/opends/resource/admin/preprocessor.xsl b/opendj-sdk/opends/resource/admin/preprocessor.xsl
index fe66473..cfc0d4d 100644
--- a/opendj-sdk/opends/resource/admin/preprocessor.xsl
+++ b/opendj-sdk/opends/resource/admin/preprocessor.xsl
@@ -21,12 +21,13 @@
! CDDL HEADER END
!
!
- ! Copyright 2008 Sun Microsystems, Inc.
+ ! Copyright 2008-2010 Sun Microsystems, Inc.
! -->
<xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin"
xmlns:admpp="http://www.opends.org/admin-preprocessor"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common">
+ xmlns:exsl="http://exslt.org/common"
+ xmlns:file="xalan://java.io.File">
<xsl:import href="java-utilities.xsl" />
<xsl:output method="xml" indent="yes" />
<!--
@@ -56,8 +57,10 @@
<!--
Get the absolute path.
-->
+ <xsl:variable name="base-file" select="file:new($base-dir)" />
+ <xsl:variable name="base-dir-uri" select="file:toURI($base-file)" />
<xsl:value-of
- select="concat($base-dir, '/', $rpath, '/', $java-name, $suffix)" />
+ select="concat($base-dir-uri, '/', $rpath, '/', $java-name, $suffix)" />
</xsl:template>
<!--
Get the URI of the named package definition.
--
Gitblit v1.10.0