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

Re: Unknown variables in XPATH (2.0)

Subject: Re: Unknown variables in XPATH (2.0)
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 13 Mar 2004 17:27:53 +0000
unknown variables
>>>>> "Michael" == Michael Kay <mhk@xxxxxxxxx> writes:

    Michael> Strictly speaking, the static context defines which
    Michael> variables are in scope for an XPath expression, and there
    Michael> is nothing that prevents the static context containing an
    Michael> infinite number of variables whose (dynamic) value is
    Michael> false.

That is the argument that was put to me. I hummed and hawed over it,
and decided to seek other opinions.

    Michael> But I think that if you have more than one user,
    Michael> the others will all be surprised by this interpretation
    Michael> of the spec, and irritated not to get an error message
    Michael> when they misspell a variable name.

That's a very strong point. I'll make it an option.

    Michael> Also, () would be a more natural value to return than
    Michael> false().

Yes, but that isn't what is wanted by the user in question.
It's a case of boolean-valued environment variables, to indicate
certain products are installed. Most people don't bother to define
such an environment variable on their system, to indicate they haven't
installed the product, so false() is the natural default in this case.
-- 
Colin Paul Adams
Preston Lancashire

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.