Storage location for XPath/XQuery Builder Favorites

Post here questions and problems related to oXygen frameworks/document types.
steve.cuzner
Posts: 72
Joined: Thu Mar 26, 2015 4:57 pm

Storage location for XPath/XQuery Builder Favorites

Post 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
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Storage location for XPath/XQuery Builder Favorites

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
steve.cuzner
Posts: 72
Joined: Thu Mar 26, 2015 4:57 pm

Re: Storage location for XPath/XQuery Builder Favorites

Post 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.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Storage location for XPath/XQuery Builder Favorites

Post by adrian »

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: 72
Joined: Thu Mar 26, 2015 4:57 pm

Re: Storage location for XPath/XQuery Builder Favorites

Post 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
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Storage location for XPath/XQuery Builder Favorites

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