Subject:Support Grid View for XML fragments Author:Philipp Salvisberg Date:09 May 2013 07:42 AM
Hi,
I've just stared to use Stylus Studio to develop Xqueries in conjunction with Oracle's XMLTABLE function in the database. For that I produce a flat XML sequence similar to the following:
I know this is not a valid document, but it'll be nice if Stylus Studio could handle that nonetheless. E.g to format the result and to present it in a grid view.
As a workaround I currently copy the Xquery preview result over to Altova XMLSpy to view the result in a grid. - It's easier than to add a node every time.
Subject:Support Grid View for XML fragments Author:Ivan Pedruzzi Date:09 May 2013 10:47 AM
Hi Philip,
The XML Editor Tree and Grid views are designed for well-formed XML, they require a DOM.
The XQuery Editor Text and Tree preview windows, when running with Saxon, can render a sequence.
If I understand your requirements, you want to make sure to generate a valid sequence. See the screenshot attached, you could also set the Scenario's output URL to save the result on each run.
Subject:Support Grid View for XML fragments Author:Philipp Salvisberg Date:09 May 2013 11:11 AM
Hi Ivan,
Thank you for the fast answer. - Your input helped. I've changed the settings to ensure that every sequence is printed on a new line. In most cases this is indeed sufficient to verify the result visually.
I agree that based on these settings I may render the result with everything which is callable via command line interface.
However, visualizing sequences in a grid is still something which is missing in Stylus Studio (that's why I posted this in the "feature request thread"), but I may live with the workaround to use XMLSpy for that purpose.