[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: Capturing/testing results of a boolean express

Subject: Re: Re: Capturing/testing results of a boolean expression.
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 2 Aug 2002 19:06:50 -0600 (MDT)
xsl when test boolean
Edward L. Knoll wrote:
> I have a variable which will have a string value.  I wish to compare
> that string value to another string value (which happens to be a literal
> value).  I've done this directly in a xsl:if or xsl:when before, but now
> I'm trying to capture the results of the expression in a variable.
> <xsl:variable name="X" ..../>
> <xsl:variable name="flag" select="$X = 'literal-string-value'" />

That does in fact do exactly what you want.

Wherever that flag variable is in scope, it is a boolean object
and you can use $flag in an XPath expression as such.

You will need to post more details of how this is not doing what
you expect. What type of object is $X, for example?

   - Mike
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.