Commit fc5568cf authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2004-01-09 18:49:58 by cmiachon] CQLx + Xquery

Original author: cmiachon
Date: 2004-01-09 18:49:58+00:00
parent 6c148505
(* include "tests/cql/SEQ/type-SEQ.cd";; *)
(* include "tests/cql/SEQ/q1.cd";; *)
(* in the Procedure section of Report1, what are the first two instruments to be used*)
(* in CQLx *)
select i2
from i in [report]/<section>[<section.title>['Procedure'] ;_]/Section.content,
i2 in (match [i]/(Incision|Action)/Instrument with [one two ; _] ->[one two])
;;
(* in CQLp *)
(* in Xquery *)
for $s in doc("report1.xml")//section[section.title="Procedure"]
return ($s//instrument)[position()<=2]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment