[Versa] Versa issue: quote madness

Uche Ogbuji uche.ogbuji at fourthought.com
Sun Sep 4 08:51:16 MDT 2005


On Mon, 2005-08-29 at 23:45 -0600, Michael Olson wrote:
> On Aug 29, 2005, at 12:09 AM, Chimezie Ogbuji wrote:
> 
> >> I think Chime was talking about using "<" as an operator as well (as
> >> short hand for the function)
> >
> > Yeah I was suggesting operators as shorthands for gte,gt,lt,lte,eq,
> > and, or, neq,etc...
> > But, due to the use of '>' and '<' by traversal operators
> > gte/gt,lte/lt have akward replacements.  However, I think the boolean
> > operators (for 'and' and 'or' ) have more useful alternatives:
> >
> > type(rss:item) - dc:date -> type(.) = xsd:date and gte('2001-01-01')
> >
> > or
> >
> > type(rss:item) - dc:date -> type(.) = xsd:date and >= '2001-01-01'
> >
> > instead of
> >
> > type(rss:item) - dc:date -> and(eq(type(.),xsd:date),gte('2001-01-01'))
> 
> I'm for this.

I'm uncomfortable with making some of these operators infix and others
not.  If some are infix, all should probably be, and we just have to
deal with the occasional awkward syntax.


-- 
Uche Ogbuji                               Fourthought, Inc.
http://uche.ogbuji.net                    http://fourthought.com
http://copia.ogbuji.net                   http://4Suite.org
Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html
XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html
Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/
Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developerworks/xml/library/x-think31.html




More information about the Versa mailing list