qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qexo-general] how to make a join ?


From: Vlada
Subject: [Qexo-general] how to make a join ?
Date: Fri, 20 Sep 2002 14:43:42 +0200

Hi,
 
   I have folowing program which creates a join of test.xml files with testResults.xml files (theese are the two functions).
I don't know why but the last statement does a counter product of tests and testresult, no selection
is performed. I tried to surround the attributes with string-value in comparison and it did not help. 
In the QuiP framework this program is ok. I  f there is some error forgive me, I am  a lame beginner.
 
Vlada
 
 
define function get-test-description()
{
    let $result := document("files/files.xml")
    return
    (
        for $x in ( $result/testreport/testfiles/testspec )     
          return document(concat("auto/.",$x/@name))
    )
}
 
define function get-test-results()
{
    let $result := document("files/files.xml")
    return
    (
        for $x in ($result/testreport/testresults/testresult)     
          return document(concat("build/.",$x/@name))
    )
}
   
    for $x in get-test-description()/test,
        $y in get-test-results()/testsuite
       where $y/properties/property/@value = $x/@id
       return <testreport>{$x} {$y}</testreport>
 
 
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]