Subject: Re: [xsl] Re: Capturing/testing results of a boolean expression. From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 02 Aug 2002 18:46:33 -0400 |
Maybe details are called for, because as I gnaw at this problem and read archives I realize the trick might be to establish an expression which returns a "boolean" as opposed to an expression which returns a "results-tree-fragment".
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'" />
Is there a way to do this that returns a 'boolean' and not a 'results-tree-fragment'?
<xsl:variable name="flag"> <xsl:value-of select="$X = 'literal-string-value'" /> </xsl:variable>
Is there a way to take a 'results-tree-fragment' which has the value "true" or "false" and turn it back into the equivalent 'boolean' value?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Capturing/testing results, Edward L. Knoll | Thread | Re: [xsl] Re: Capturing/testing res, Mike Brown |
[xsl] Any way to intergate for the , Edward L. Knoll | Date | RE: [xsl] Any way to intergate for , Paul Brown |
Month |