Hi Rob,
this might be a little detour, but still worth a try: By using RestXQ [1] you could transform your data to an HTML table and display it in any browser. E.g. like so: https://gist.github.com/45cdb78b093fc3d91cac The htmlize() function will simply rename your elements to math their html counterparts.
You may then call this function from whithin RestXQ and see the results in any browser :)
Kind regards Michael
[1] http://docs.basex.org/wiki/RESTXQ Am 16.08.2012 um 00:02 schrieb Rob Heiser rheiser@gmail.com:
I'm using BaseXGUI to develop xqueries. The xqueries transform some data from the database into XML that will be rendered as a table. Will the table visualization view in BasexGUI work this way? My xqueries look something like this:
let $dbName := "foo" return <table> <columns> <column>Name</column> <column>Child name</column> </columns> <rows> { for $item in doc($dbname)/some/xpath return <row> <cell>{$item/name/text()}</cell> <cell>{$item/child/name/text()}</cell> </row> } </rows> </table>
The text view of the results look like I expect it to, and using the xqueries inside the application I'm developing works once I get them written and debugged. I'd like to preview the tables inside BaseXGUI if possible, before returning to the IDE and having to run the application, if possible. Thanks for any guidance.
-- Rob _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk