RussellB Posted June 28, 2005 Posted June 28, 2005 <xsl:choose> <xsl:when test="$abc=' ' "> ...false </xsl:when> <xsl:otherwise> ...true </xsl:otherwise> </xsl:choose> Is this the correct way to test if variable abc has a value (ie. I want to test if a token has been passed)? Thanks
beverly Posted June 28, 2005 Posted June 28, 2005 ' <xsl:when test="$abc != '' "> ' ... do this ... Try to test for NOT EMPTY. Use the xsl:otherwise for an empty value. http://www.w3.org/TR/xpath#NT-OperatorName
Recommended Posts
This topic is 7088 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now