sunyj 8 лет назад
Родитель
Сommit
bd0ed6ae45
1 измененных файлов с 2 добавлено и 38 удалено
  1. 2 38
      src/main/resources/crystal2jasper.xsl

+ 2 - 38
src/main/resources/crystal2jasper.xsl

@@ -209,44 +209,8 @@
 	<xsl:template match="Element">
 		<xsl:variable name="type" select="@type" />
 		<xsl:choose>
-			<xsl:when test="$type='Box'">
-				<!-- <rectangle> <reportElement mode="Opaque"> <xsl:variable name="x" 
-					select="@x_position" /> <xsl:variable name="y" select="@y_position" /> <xsl:variable 
-					name="x2" select="@x2_position" /> <xsl:variable name="y2" select="@y2_position" 
-					/> position <xsl:choose> <xsl:when test="$x2 > $x"> <xsl:attribute name="x"> 
-					<xsl:value-of select="round($x div $positionRate)" /> </xsl:attribute> <xsl:attribute 
-					name="width"> <xsl:value-of select="round(($x2 - $x) div $positionRate)" 
-					/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="x"> 
-					<xsl:value-of select="round($x2 div $positionRate)" /> </xsl:attribute> <xsl:attribute 
-					name="width"> <xsl:value-of select="round(($x - $x2) div $positionRate)" 
-					/> </xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when 
-					test="$y2 > $y"> <xsl:attribute name="y"> <xsl:value-of select="round($y 
-					div $positionRate)" /> </xsl:attribute> <xsl:attribute name="height"> <xsl:value-of 
-					select="round(($y2 - $y) div $positionRate)" /> </xsl:attribute> </xsl:when> 
-					<xsl:otherwise> <xsl:attribute name="y"> <xsl:value-of select="round($y2 
-					div $positionRate)" /> </xsl:attribute> <xsl:attribute name="height"> <xsl:value-of 
-					select="round(($y - $y2) div $positionRate)" /> </xsl:attribute> </xsl:otherwise> 
-					</xsl:choose> </reportElement> </rectangle> -->
-			</xsl:when>
-			<xsl:when test="$type='Line'">
-				<!-- <line> <reportElement mode="Opaque"> <xsl:variable name="x" select="@x_position" 
-					/> <xsl:variable name="y" select="@y_position" /> <xsl:variable name="x2" 
-					select="@x2_position" /> <xsl:variable name="y2" select="@y2_position" /> 
-					position <xsl:choose> <xsl:when test="$x2 > $x"> <xsl:attribute name="x"> 
-					<xsl:value-of select="round($x div $positionRate)" /> </xsl:attribute> <xsl:attribute 
-					name="width"> <xsl:value-of select="round(($x2 - $x) div $positionRate)" 
-					/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="x"> 
-					<xsl:value-of select="round($x2 div $positionRate)" /> </xsl:attribute> <xsl:attribute 
-					name="width"> <xsl:value-of select="round(($x - $x2) div $positionRate)" 
-					/> </xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when 
-					test="$y2 > $y"> <xsl:attribute name="y"> <xsl:value-of select="round($y 
-					div $positionRate)" /> </xsl:attribute> <xsl:attribute name="height"> <xsl:value-of 
-					select="round(($y2 - $y) div $positionRate)" /> </xsl:attribute> </xsl:when> 
-					<xsl:otherwise> <xsl:attribute name="y"> <xsl:value-of select="round($y2 
-					div $positionRate)" /> </xsl:attribute> <xsl:attribute name="height"> <xsl:value-of 
-					select="round(($y - $y2) div $positionRate)" /> </xsl:attribute> </xsl:otherwise> 
-					</xsl:choose> </reportElement> </line> -->
-			</xsl:when>
+			<xsl:when test="$type='Box'"></xsl:when>
+			<xsl:when test="$type='Line'"></xsl:when>
 			<!-- staticText -->
 			<xsl:when test="$type='Text'">
 				<staticText>