Hello,
can somebody tell me why this code does not work?
I know that following code works, but in the future I will have more test cases, so its just a temporary solution.
thanks,
michael
can somebody tell me why this code does not work?
Code:
<xsl:variable name="pagesvar">
<xsl:choose>
<xsl:when test="/p/divi/text() = 'bla'">
<xsl:value-of select="/p/navigation/page//page[template='T1']"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/p/navigation/page//page[template='T2']"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
I know that following code works, but in the future I will have more test cases, so its just a temporary solution.
Code:
<xsl:variable name="pagesvar" select="if (/p/divi/text()='bla') then /p/navigation/page//page[template='T1'] else /p/navigation/page//page[template='T2']"/>
michael