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

Re: mapping (Was: Re: Re: . in for)

Subject: Re: mapping (Was: Re: Re: . in for)
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 9 Jan 2002 00:15:17 -0800 (PST)
 Re: mapping (Was: Re: Re: . in for)
Jeni Tennison <jeni at jenitennison dot com> wrote:


> Or if you just don't like the -> then there are still a few ASCII
> characters left, and several interesting combinations of them, or
> there's always a word (or two) as the operator, like 'map':
>   $departments map lower-case(.)
> and:
>   $coordinates map (. * 2)
>                map if (position() mod 2) then . + 50 else .

Hi Jeni,

As I already pointed out in my reply to Dave, 

>   $departments map lower-case(.)

would be ambiguous, as lower-case(.) is a value/string (the result of the
application of lower-case() on .

What map needs is a function (or at least an expression). Therefore, a more correct
and unambiguous way to present the above is:

   $departments map expression('lower-case(.)')

Dimitre Novatchev.

Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

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

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.