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

Re: XSLT 2.0 courses?

Subject: Re: XSLT 2.0 courses?
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Sep 2020 13:56:31 -0000
Re:  XSLT 2.0 courses?
On Mon, 21 Sep 2020 at 14:47, Chris Papademetrious
christopher.papademetrious@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> I suppose it depends on your background. I use other languages that chain
> equal-precedence operators in this fashion. Perl's logical OR operator
> comes to mind first - "$a or $b or $c", with short-circuiting evaluation.
> Python has a similar short-circuiting OR operator.

sure but there in perl you are applying "logical or" to singleton values
and it's clear what it means.

The suggestion here is to allow

    $a  zzz $b zzz $c

where $a, $b, $c, are possibly empty sequences including sequences of
booleans, so as this thread shows there are multiple essentially arbitrary
choices about how you define  zzz,  in particular what do you do if the
first item of $a is false (or 0  or an empty string, which have effective
boolean values of false).  It  is easy to pick a definition and define the
behaviour unambiguously but the end result is most likely people get caught
out when these edge cases do not behave as they expected.


Although I'm an XSLT novice, so perhaps if my brain were steeped more in
> XSLT, its nuances would render this less obvious to me?
>  - Chris

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.