Reerosteedo
New Member
I have the following which checks for a string within the xml... however, I need to create another test to check for 'Null' or no text within the variable \[code\]$validItems\[/code\] at the 1st line...\[code\]<xsl:if test="$validItems[(Caption | CalltoAction)[string(.)]]"> <div class="text"> <xsl:choose> <xsl:when test="$horizontal"> <div class="holder"> <div class="frame"> <div class="slides-descriptions"> <xsl:apply-templates select="$validItems" mode="horizontal"/> </div> <div class="switcher"/> </div> </div> </xsl:when> <xsltherwise> <div class="slides-descriptions"> <xsl:apply-templates select="$validItems" mode="vertical"/> </div> <div class="switcher"/> </xsltherwise> </xsl:choose> </div></xsl:if>\[/code\]How would I go about testing the variable xsl:if test=$validItems?