Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 68574 invoked from network); 8 May 2003 21:12:27 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 May 2003 21:12:27 -0000 Received: (qmail 4245 invoked by uid 97); 8 May 2003 21:14:34 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@nagoya.betaversion.org Received: (qmail 4238 invoked from network); 8 May 2003 21:14:34 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 May 2003 21:14:34 -0000 Received: (qmail 68347 invoked by uid 500); 8 May 2003 21:12:24 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 68336 invoked from network); 8 May 2003 21:12:24 -0000 Received: from preter.essentially.net (65.219.63.27) by daedalus.apache.org with SMTP; 8 May 2003 21:12:24 -0000 Received: from precision (preter [127.0.0.1]) by preter.essentially.net (8.12.8p1/8.12.8) with ESMTP id h48LCWXq028815; Thu, 8 May 2003 17:12:33 -0400 Date: Thu, 8 May 2003 17:12:26 -0400 (EDT) From: Shawn Bayern X-Sender: bayern@precision To: Tag Libraries Users List , otisg@ureach.com Subject: Re: RE: missing if/else syntax In-Reply-To: <200305082059.QAA24603@www22.ureach.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 8 May 2003, otisg wrote: > Shawn, you are saying 'we', so it looks you participated in decision > making, or were at least close to it. I'm just curious, why was > c:choose chosen, insteaf of (a more 'natural') c:switch? > > Lot's of programming languages use the switch keyword. I don't > use any PL that uses choose keyword. Does XSLT use choose? If > so, why did they decide on choose, any idea? I was indeed a member of the JSTL expert group. The construct in JSTL isn't quite analogous to a switch, which in languages that people are familiar with represents a branch (typically based on an integer) against matching possibilities. In XSLT's and JSTL's case, the mutually exclusive paths are always chosen by boolean expressions, which may be independent from one another; aside from the fact that both allow multi-way conditions, 'switch' in (say) Java and and 'choose' in JSTL really don't have much in common either syntactically or semantically. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org