Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7088 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

<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

Posted

' <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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.