[Versa] Versa issue: quote madness

Michael Olson Mike.Olson at fourthought.com
Sun Sep 4 11:22:34 MDT 2005


>>> 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.
>

Thanks Uche, I missed that little bit.  I think that Chime was not  
trying to use infix operators, but instead was using the "." is default  
approach.  I don't like that.  I think it is fine for function  
arguments, but I think that for operators it should be required so the  
resulting expression would be:

type(rss:item) - dc:date -> type() = xsd:date and . >= '2001-01-01'

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




More information about the Versa mailing list