Page 1 of 1
Multiple XPath result tabs for documents with the same name
Posted: Wed Jun 06, 2018 11:20 am
I've opened multiple documents with the same name (placed in distinct directories on the disk). When I run XPath angainst current file, new tab with results appears, tab ha name "XPath – file.xml". When I execute XPath over another file with the same name, results are replaced. When I run XPath against another file with different name, results appears on new tab.
It's possible to show results form distinct files, but with the same name, in distinct tabs?
Re: Multiple XPath result tabs for documents with the same name
Posted: Wed Jun 06, 2018 6:10 pm
Unfortunately it's not possible if they have the same file name.
The name of the XPath result tab is derived from the file name, so if you have two or more with the same name, the same results tab gets updated (previous one is cleared/replaced).
If you apply a different XPath on each file, it can help if you enable Options > Preferences, XML / XSLT-FO-XQuery / XPath, Multiple XPath results. This option adds the XPath expression to the name of the XPath results tab.
Perhaps you could use the XPath scope to apply the same XPath on multiple files at the same time. In that case the results for all the files are presented in the same tab, but they can be grouped.