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

Re: Designs for XSLT functions (Was: Re: RE: syntax su

Subject: Re: Designs for XSLT functions (Was: Re: RE: syntax sugar for call-template)
From: Uche Ogbuji <uche.ogbuji@xxxxxxxxxxxxxxx>
Date: Wed, 28 Feb 2001 11:04:02 -0700
xslt testare il true
> So let's discuss some possibilities...
> 
> 1. conditional construct
> 
> a. test ? true : false
> 
>    Note: possible problems with : being used - have to make sure that
>    it has spaces either side to distinguish between it being used in
>    this construct and in a name
> 
> b. test ? true ! false

I like this one.

> c. IF test THEN true ELSE false
> d. #if test #then true #else false
> e. if(test, true, false)
> 
>    Note: as discussed, need to change the semantics of when arguments
>    in functions are evaluated with this last option
> 
> 2. changing context node for id(), key() & unparsed-entity-uri()
> 
> a. document(doc, base)/id(identifier)

I don't see why not this simple approach.  i.e. I vote a.

> b. document(doc, base) -> id(identifier)
> c. id(identifier, doc, base)
> d. id(identifier) IN document(doc, base)
> e. id(identifier) #in document(doc, base)
> f. WITH document(doc, base) id(identifier)
> 
> 3. comparing/sorting strings
> 
> a. compare-strings(string1, string2)
> b. string1 > string2  (etc.)
> c. sort(string1, string2)
> d. sort(nodes, ...)

I say we begin experimentation using functions, and then we can move to 
operators if all looks well.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@xxxxxxxxxxxxxxx               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python



 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.