From 0c2f855510d000630ff1ac51a0ee9f5ff7b8364a 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
---
opends/resource/admin/preprocessor.xsl | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/opends/resource/admin/preprocessor.xsl b/opends/resource/admin/preprocessor.xsl
index fe66473..cfc0d4d 100644
--- a/opends/resource/admin/preprocessor.xsl
+++ b/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