Próbuję wyprowadzić literalną wartość ciągu zmiennej, po ustawieniu w zależności od tego, czy węzeł istnieje, czy nie. Myślę, że logika sprawdzania warunków jest poprawna. Ale to nie jest outputing wartości ...<xsl: variable> Wydruk wartości zmiennej XSL za pomocą <xsl: value-of>
<xsl:variable name="subexists"/>
<xsl:template match="class">
<xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
<xsl:choose>
<xsl:when test="joined-subclass">
<xsl:variable name="subexists" select="'true'"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="subexists" select="'false'"/>
</xsl:otherwise>
</xsl:choose>
subexists: <xsl:value-of select="$subexists" />
Chcę go do wyjścia dosłowne ciąg albo "true" na "false". Ale niczego nie wyprowadza. Proszę pomóż! Dziękuję Ci!!!