From b002eddf94ec3b320791999adbd905f99afc2884 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 17 Jan 2012 10:15:55 +0000
Subject: [PATCH] Fix OPENDJ-407: Upgrade version of Ant included in OpenDJ server sources

---
 opends/ext/ant/etc/checkstyle/checkstyle-frames.xsl |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/opends/ext/ant/etc/checkstyle/checkstyle-frames.xsl b/opends/ext/ant/etc/checkstyle/checkstyle-frames.xsl
index d381b55..c79c0b7 100644
--- a/opends/ext/ant/etc/checkstyle/checkstyle-frames.xsl
+++ b/opends/ext/ant/etc/checkstyle/checkstyle-frames.xsl
@@ -1,6 +1,7 @@
+<?xml version="1.0"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
     xmlns:lxslt="http://xml.apache.org/xslt"
-    xmlns:redirect="org.apache.xalan.lib.Redirect"
+    xmlns:redirect="http://xml.apache.org/xalan/redirect"
     extension-element-prefixes="redirect">
 
 <!--
@@ -224,13 +225,18 @@
     -->
     <xsl:template name="path">
         <xsl:param name="path"/>
-        <xsl:if test="contains($path,'/')">
+
+        <!-- Convert a windows path '\' to a unix path '/' for further processing. -->
+        <xsl:variable name="path2" select="translate($path,'\','/')"/>
+
+        
+        <xsl:if test="contains($path2,'/')">
             <xsl:text>../</xsl:text>
             <xsl:call-template name="path">
-                <xsl:with-param name="path"><xsl:value-of select="substring-after($path,'/')"/></xsl:with-param>
+                <xsl:with-param name="path"><xsl:value-of select="substring-after($path2,'/')"/></xsl:with-param>
             </xsl:call-template>
         </xsl:if>
-        <xsl:if test="not(contains($path,'/')) and not($path = '')">
+        <xsl:if test="not(contains($path2,'/')) and not($path2 = '')">
             <xsl:text>../</xsl:text>
         </xsl:if>
     </xsl:template>

--
Gitblit v1.10.0