Skip to content
Browse files

Another update to fix cobertura xsl for FlexCover.

git-svn-id: http://opensource.adobe.com/svn/opensource/flexunit/branches/4.x@11001 a9308255-753e-0410-a2e9-80b3fbc4fff6
  • Loading branch information...
1 parent c1a914a commit b7dd9ebcf306ae28821c242984e7837945e3e534 me@brianlegros.com committed Oct 19, 2009
Showing with 5 additions and 3 deletions.
  1. +5 −3 FlexUnit4Test/fc-to-cobertura.xsl
View
8 FlexUnit4Test/fc-to-cobertura.xsl
@@ -72,9 +72,11 @@
<xsl:value-of select="@name" />
</xsl:attribute>
<xsl:attribute name="filename">
- <xsl:variable name="safeSourcePath" select="replace($sourcePath, '\\', '/')" />
- <xsl:variable name="safePathname" select="replace(@pathname, '\\', '/')" />
- <xsl:value-of select="substring(replace($safePathname, $safeSourcePath, ''), 2)" />
+ <xsl:variable name="safeSourcePath" select="lower-case(replace($sourcePath, '\\', '/'))" />
+ <xsl:variable name="safePathname" select="lower-case(replace(@pathname, '\\', '/'))" />
+ <xsl:if test="compare($safeSourcePath, substring($safePathname, 1, string-length($safeSourcePath))) = 0">
+ <xsl:value-of select="substring(@pathname, string-length($safeSourcePath) + 2, string-length(@pathname))" />
+ </xsl:if>
</xsl:attribute>
<xsl:attribute name="line-rate">
<xsl:value-of select="@lineCoverage" />

0 comments on commit b7dd9eb

Please sign in to comment.
Something went wrong with that request. Please try again.