Hello there,
I’m trying to accomplish the following : getting ancestors of a Node with an XQuery.
Let’s say that I have the following structure :
..... 007 .....A Book can contain any number of Section (recursive) and a Section ends with an Article. Each Article has a unique ID (eg 007).
I want to get the Axis/Path of ALL ancestors (Book & Section & their attributes) of an Article (given its id).
ie : filtering out all Section which does not contain Article 007
eg :
Is it possible with an XQuery ?
Thanks.