Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory 
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5860/tests/BugTracker/Tests

Added Files:
      Tag: M5XQ
        child-steps-and-replace.SF-2716723.xq.in 
Log Message:
propagated changes of Tuesday Sep 08 2009
from the development trunk to the M5XQ branch

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/09/08 - sjoerd:
        tests/BugTracker/Tests/child-steps-and-replace.SF-2716723.xq.in,1.2
propagated changes of Tuesday Sep 08 2009
from the Aug2009 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/09/08 - vzzzbx:
        tests/BugTracker/Tests/child-steps-and-replace.SF-2716723.xq.in,1.1.2.1
adding test for bug SF-2716723.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--- NEW FILE: child-steps-and-replace.SF-2716723.xq.in ---
declare function local:normCompanyName($name as xs:string) as xs:string {
 normalize-space(replace(
   upper-case(translate($name,",./()-","      "))
 ,"LIMITED","LTD"))
};

declare function local:companyList($rootnode as node()*) {
   let $all := $rootnode//company/addressbook/name
   let $uniqueNames := distinct-values(for $i in $all
                                       return local:normCompanyName($i))
   for $i in $uniqueNames
   let $firstNode := $all[local:normCompanyName(.)=$i][1]
   return $firstNode/../..
};

let $col := doc("$TSTSRCDIR/child-steps-and-replace.SF-2716723.xml")
return local:companyList($col)


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to