Re: Re: Capturing/testing results of a boolean express
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format