I have an XSLT 1 question.
Say I have:
<xsl:variable name="foo">
<xsl:choose>
<xsl:when test="$aVar='someFlag'">
<xsl:value-of select="/path/to/some/element"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/path/to/another/element"/>
</xsl:otherwise>
</xsl:variable>
<xsl:choose>
<xsl:when test="$foo">
<xsl:value-of select="$foo"/>
</xsl:when>
<xsl:otherwise>--</xsl:otherwise>
</xsl:choose>
Currently, I never get "--" as my output even if $aVar is set to
'someFlag' and the element at "/path/to/some/element" does not exist.
Can someone explain where I went wrong?
Thanks,
David
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--