Czy ktoś może mi powiedzieć co to jest za bład ??
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.01" encoding="UTF-8"/>
<xsl:variable name="start" select="/tabela/@start"/>
<xsl:variable name="stop" select="/tabela/@stop"/>
<xsl:variable name="nazwa" select="/tabela/nazwa"/>
<xsl:variable name="zm1" select="$start + $stop"/>
<xsl:template match="/">
<html>
<body>
<h3>
<xsl:value-of select="$nazwa"/>
</h3>
<p>
start = <xsl:value-of select="$start"/>
</p>
<p>
stop = <xsl:value-of select="$stop"/>
</p>
<p>
<xsl:if test="$start > $stop">
błąd danych, zmień wartość początkową
</xsl:if>
</p>
<p>
zmienna 1 = <xsl:value-of select="$zm1"/>
</p>
<xsl:variable name="zm2" select="($start + $stop)*2-11"/>
<p>
zmienna 2 = <xsl:value-of select="$zm2"/>
</p>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="tabela">
<xsl:variable name="test" select="44"/>
zmienna test = <xsl:value-of select="$test"/>
<xsl:variable name="nowa" select="$zm2+$test"/>
<p>
zmienna nowa = <xsl:value-of select="$nowa"/>
</p>
</xsl:template>
</xsl:stylesheet>