J
Jeff Kish
Hi.
I've been experimenting more with xquery trying to get back into it.
I am not seeing how to, given some query that returns a set of
elements, how to do the following:
given an operation over a collection of documents,
find all the elements <table> that have an attribute called relation,
and return the files names, and some of the attributes of
the returned element and some of their particular ancestor's
attributes.... something like this;
xxx.xml
segment speed="1"
table1 relation="upper"
table3 relation="upper"
xxy.xml
segment speed="2"
table2 relation="lower"
given this xml file set:
document xxx.xml
<area>
<segment id="segment1" speed="1">
<table id="table1" relation="upper" />
<table id="table2" orientation="side" />
<table id="table3" relation="upper" />
</segment>
</area>
document xxy.xml
<area>
<segment id="segment1" speed="2">
<table id="table1" orientation="bottom" />
<table id="table2" relation="lower" />
<table id="table3" orientation"top" />
</segment>
</area>
I've been experimenting more with xquery trying to get back into it.
I am not seeing how to, given some query that returns a set of
elements, how to do the following:
given an operation over a collection of documents,
find all the elements <table> that have an attribute called relation,
and return the files names, and some of the attributes of
the returned element and some of their particular ancestor's
attributes.... something like this;
xxx.xml
segment speed="1"
table1 relation="upper"
table3 relation="upper"
xxy.xml
segment speed="2"
table2 relation="lower"
given this xml file set:
document xxx.xml
<area>
<segment id="segment1" speed="1">
<table id="table1" relation="upper" />
<table id="table2" orientation="side" />
<table id="table3" relation="upper" />
</segment>
</area>
document xxy.xml
<area>
<segment id="segment1" speed="2">
<table id="table1" orientation="bottom" />
<table id="table2" relation="lower" />
<table id="table3" orientation"top" />
</segment>
</area>