|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Capturing/testing results of a boolean expression.
Ed,
If I understand you correctly, what you want is as simple as <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:variable name="claim" select="1 > 2"/> <xsl:template match="/">
<xsl:choose>
<xsl:when test="$claim">True</xsl:when>
<xsl:otherwise>False</xsl:otherwise>
</xsl:choose>
</xsl:template></xsl:stylesheet> I tested this by running it against itself in Saxon, and it works as expected. I hope that helps, Wendell At 05:23 PM 8/2/2002, you wrote: I have state information I need/wish to capture in a "boolean" variable. I need to use the result of the expression in multiple places; I do not wish to replicate the expression everywhere it is needed for maintenance reasons. The value is "static" and I can establish it at a global context. ====================================================================== 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 ====================================================================== 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
|

Cart








