Storage location for XPath/XQuery Builder Favorites

Post here questions and problems related to oXygen frameworks/document types.
steve.cuzner
Posts: 69

Storage location for XPath/XQuery Builder Favorites

Wed Aug 24, 2016 6:09 pm

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
adrian
Posts: 2451

Re: Storage location for XPath/XQuery Builder Favorites

Wed Aug 24, 2016 6:40 pm

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
steve.cuzner
Posts: 69

Re: Storage location for XPath/XQuery Builder Favorites

Wed Aug 24, 2016 7:58 pm

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.
adrian
Posts: 2451

Re: Storage location for XPath/XQuery Builder Favorites

Wed Aug 24, 2016 8:47 pm

What exact engine are you using in the XPath/XQuery builder (selected in its toolbar) to run the query?
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
steve.cuzner
Posts: 69

Re: Storage location for XPath/XQuery Builder Favorites

Thu Aug 25, 2016 5:29 pm

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
adrian
Posts: 2451

Re: Storage location for XPath/XQuery Builder Favorites

Fri Aug 26, 2016 8:39 pm

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests