Hello Rob,
I doubt that this is possible. The Table View (as the TreeView) displays the data in the currently opened database. The table view then marks nodes if they are within the result set of your XPath.
It is made for and therefore can not interpret your XQuery and the specific result there. In fact, the table view is the same as the TreeView, just in a tabular fashion. And it is also not possible in the TreeView to render arbitrary data. It really is just a tool to look at your documents in the database.
Cheers, Dirk
On Thu, Aug 16, 2012 at 12:02 AM, Rob Heiser rheiser@gmail.com wrote:
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