Page 1 of 1

Storage location for XPath/XQuery Builder Favorites

Posted: Wed Aug 24, 2016 6:09 pm
by steve.cuzner
If you set a query as a favorite, does it get stored to the user's global preferences file? How could I easily distribute a query to all of my writers who use a framework so that they are all using the same query consistently and the query gets updated and distributed as needed?

Steve

Re: Storage location for XPath/XQuery Builder Favorites

Posted: Wed Aug 24, 2016 6:40 pm
by adrian
Hi,

The XPath/XQuery Builder was designed as a scratch buffer for XSLT/XQuery developers, so it might not be the best tool for writers. The favorites get stored in the global preferences.

Why not place the query in an actual XQuery file and configure an "XML transformation with XQUERY" scenario (either at project or framework level) that can be distributed together with an Oxygen project (.xpr) or .framework file? You can then update the XQuery file as needed.

Regards,
Adrian

Re: Storage location for XPath/XQuery Builder Favorites

Posted: Wed Aug 24, 2016 7:58 pm
by steve.cuzner
That was my original thought, but that is a transformation. What we are looking for is the ability for writers to find patterns and correct them. When you put the xq in the builder, the results are listed in the results tab and can be double clicked on to navigate to the pattern of interest.

Re: Storage location for XPath/XQuery Builder Favorites

Posted: Wed Aug 24, 2016 8:47 pm
by adrian
What exact engine are you using in the XPath/XQuery builder (selected in its toolbar) to run the query?

Re: Storage location for XPath/XQuery Builder Favorites

Posted: Thu Aug 25, 2016 5:29 pm
by steve.cuzner
XPath 2.0

We're also considering using a schematron test with the xpath which would allow for quick fixes. Probably the best way to go.

Steve

Re: Storage location for XPath/XQuery Builder Favorites

Posted: Fri Aug 26, 2016 8:39 pm
by adrian
Hi,

If you're using XPath (not XQuery) I see how you would need the list from the results panel.
Schematron quick fixes are probably the best solution in this case.

Regards,
Adrian