Change 20091030-hqm-t by [email protected] on 2009-10-30 16:51:30 EDT
     in /Users/hqm/openlaszlo/trunk6
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix implementation of xpath last()

New Features:

Bugs Fixed: LPP-298

Technical Reviewer: andre
QA Reviewer: max
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

Andre's suggested implemenation of last() operator on  
LzDataAttrBind.__LZHandleMultiNodes


Tests:

test case from bug report

<canvas debug="true" >
  <dataset name="dsBooks" >
   <bookshelf>
    <book /><book />   <book /><book />
   </bookshelf>
  </dataset>

  <text>
   <attribute name="books" value="$path{'dsBooks:/bookshelf/book/ 
last()'}" type="number"/>
   <handler name="onbooks" >
     this.format("found %d book(s)", this.books);
   </handler>
  </text>
</canvas>


Files:
M      WEB-INF/lps/lfc/data/LzDataAttrBind.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20091030-hqm-t.tar
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews

Reply via email to