You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jh...@apache.org on 2007/11/26 16:56:34 UTC
svn commit: r598323 -
/ant/core/trunk/src/etc/checkstyle/checkstyle-frames.xsl
Author: jhm
Date: Mon Nov 26 07:56:33 2007
New Revision: 598323
URL: http://svn.apache.org/viewvc?rev=598323&view=rev
Log:
FIX: on windows the css is not included (wrong path was calculated)
Modified:
ant/core/trunk/src/etc/checkstyle/checkstyle-frames.xsl
Modified: ant/core/trunk/src/etc/checkstyle/checkstyle-frames.xsl
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/checkstyle/checkstyle-frames.xsl?rev=598323&r1=598322&r2=598323&view=diff
==============================================================================
--- ant/core/trunk/src/etc/checkstyle/checkstyle-frames.xsl (original)
+++ ant/core/trunk/src/etc/checkstyle/checkstyle-frames.xsl Mon Nov 26 07:56:33 2007
@@ -224,13 +224,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>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org