Page 1 of 1

Apply XPath on collection

Posted: Thu Jan 31, 2019 1:12 pm
by Seb
I want to evaluate an XPath on a collection like this:

string-join(
collection("file:/C:/Users/me/my-folder/")//biblStruct/@xml:id,
" "
)

I expect the XPath to have one final result of type string. But oXygen seems to return something depending on the selected scope. When using "current file", the XPath is only applied to the current file, when selecting "Project" or "Working sets", oXygen applies the XPath to each file *separately*.

How to really apply the XPath to a collection of files and obtain exactly *one* result?

Re: Apply XPath on collection

Posted: Thu Jan 31, 2019 1:18 pm
by Radu
Hi,

Unfortunately the scope does not behave as an XML collection(). The XPath is simply applied on each file from the scope. We already have an issue on our side to look into how we could make your use case work, if we manage to do that in a future version we'll update this forum thread.

Regards,
Radu