[Versa] Versa issue: quote madness

Chimezie Ogbuji chimezie at gmail.com
Mon Aug 29 00:09:11 MDT 2005


> 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'))

> 
> . - ns:age -> < 30 as opposed to . - ns:age -> lt(30)
> 
> That feels weird though
> 
> Mike
> 
> 
> >
> > --
> > 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
> >
> > _______________________________________________
> > Versa mailing list
> > Versa at lists.fourthought.com
> > http://lists.fourthought.com/mailman/listinfo/versa
> >
> ------------------------------------------------------------------------
> -----------------
> Mike Olson                                                Principal
> Consultant
> mike.olson at fourthought.com                +1 720 253 4662
> Fourthought, Inc.
> http://Fourthought.com
> PO Box 270590,                                       http://4Suite.org
> Louisville, CO 80027-5009, USA
> XML strategy, XML tools, knowledge management
> 
> _______________________________________________
> Versa mailing list
> Versa at lists.fourthought.com
> http://lists.fourthought.com/mailman/listinfo/versa
>



More information about the Versa mailing list