I have an xml document structured like so:
<db>
<table1>
<row>
<id>1</id>
<val1>1</val1>
<val2>1</val2>
</row>
<row>
<id>2</id>
<val1>2</val1>
<val2>2</val2>
</row>
</table1>
<table2>
<row>
<id>1</id>
<name>a</name>
</row>
<row>
<id>2</id>
<name>b</name>
</row>
</table2>
<table3>
<row>
<id>1</id>
<name>x</name>
</row>
<row>
<id>2</id>
<name>y</name>
</row>
</table3>
</db>
I need to bind my object to /db/table1/row[id=1]
and allow child objects to obtain //db/table{2/3}/row[id={boundrow}/val{1/2}]
Is it possible to do this directly, or do I have to "create a view" (eg. extract to an object, run an xslt, etc)