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:59:05 UTC
svn commit: r598325 -
/ant/core/branches/ANT_17_BRANCH/src/etc/checkstyle/checkstyle-frames.xsl
Author: jhm
Date: Mon Nov 26 07:59:04 2007
New Revision: 598325
URL: http://svn.apache.org/viewvc?rev=598325&view=rev
Log:
sync: fix problems with css + windows paths
Modified:
ant/core/branches/ANT_17_BRANCH/src/etc/checkstyle/checkstyle-frames.xsl
Modified: ant/core/branches/ANT_17_BRANCH/src/etc/checkstyle/checkstyle-frames.xsl
URL: http://svn.apache.org/viewvc/ant/core/branches/ANT_17_BRANCH/src/etc/checkstyle/checkstyle-frames.xsl?rev=598325&r1=598324&r2=598325&view=diff
==============================================================================
--- ant/core/branches/ANT_17_BRANCH/src/etc/checkstyle/checkstyle-frames.xsl (original)
+++ ant/core/branches/ANT_17_BRANCH/src/etc/checkstyle/checkstyle-frames.xsl Mon Nov 26 07:59:04 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