Hi,
ALso Ich hab das alles so eingestelllt wie du gesagt hast funktioniert jetzt eig. super, nur das Problem welches du mir erzählt hat mit den Azahl der Wiederholungen kirege ich nicht hin.
Ihc rufe diese template auf und dann kommt das:
<xsl:template match="/Intervall/value" name="Temp1">
<xsl:param name="add">0</xsl:param>
<xsl:param name="knoten" select="."/>
<xsl:param name="countInt" select="$CountforInt"></xsl:param>
<xsl:for-each select="$knoten/descendant-or-self::value">
<xsl:choose>
<xsl:when test="following-sibling::value[position() = 1]">
<g class="Lines1">
<line x1="{$add}%" y1="{100-(((.) - $MinV)*(100 div ($MaxV - $MinV)))}%" x2="{$add+$share}%"
y2="{100-(((following-sibling::value[position() = 1]) - $MinV)*(100 div ($MaxV - $MinV)))}%"/>
</g>
<xsl:call-template name="Temp1">
<xsl:with-param name="countInt" select="$countInt+$CountforInt"/>
<xsl:with-param name="add" select="$add+$share"/>
<xsl:with-param name="knoten"
select="following-sibling::value[position() = 1]"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="parent::Intervall/following-sibling::Intervall[position() = 1]/value[position() = 1]">
<g class="Lines1">
<line x1="{$add}%" y1="{100-(((.) - $MinV)*(100 div ($MaxV - $MinV)))}%" x2="{$add+$share}%"
y2="{100-(((parent::Intervall/following-sibling::Intervall[position() = 1]/value[position() = 1]) - $MinV)*(100 div ($MaxV - $MinV)))}%"/>
</g>
</xsl:if>
<xsl:call-template name="Temp1">
<xsl:with-param name="countInt" select="$countInt+$CountforInt"/>
<xsl:with-param name="add" select="$add+$share"/>
<xsl:with-param name="knoten"
select="parent::Intervall/following-sibling::Intervall[position() = 1]/value[position() = 1]"
/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
Ich hatte jetzt die Idee countInt so hochzuzählen das er nachdem erstenmal durchgehne aufhört. Das abbrechen funktioniert eig. auch soweit völlig InOrdnung jedoch geht er beim abbrechen nciht aus dem template sonder nur aus der "schleife" und geht zum anfang des templates wo der zähler wieder auf 0 gesetzt wird...
Ich habe wirklich keine Idee wie ich dies bewerkstäligen soll.
MfG
Bahr