Changes

Jump to navigation Jump to search
1,387 bytes added ,  13:06, 11 February 2019
no edit summary
# Click ''Apply and Close'' to close the ''Preferences'' dialog.
# If prompted, restart Eclipse to activate all changes.
 
===Configure New Transformation Scenario===
 
# In Eclipse, choose ''File'' → ''New'' → ''XQuery File''. Enter a filename and click ''Finish''. Enter a query and save the file.
# Select ''Window'' → ''Show View'' → ''Transformation Scenarios''.
# In the ''Transformation Scenarios'' panel on the right-hand side, click {{Code|+}} and select ''XQuery transformation'' in the lower part of the dropdown list.
# Enter a name for your transformation, e.g. "BaseX".
# Specify an optional XML and XQuery URL.
#* If you would like to query the BaseX database you connected to via WebDAV, leave the ''XML URL'' field empty. To access your database, you can use the {{Code|db:open}} function from the BaseX [[Database_Module|Database Module]] in your ''XQuery URL'' file.
#* If you specify an XML document in the ''XML URL'' field, you can query its content using {{Code|.}} (dot operator) in your ''XQuery URL'' file.
# Choose "BaseX XQJ" as Transformer from the combo box.
# Click ''OK'' to complete the scenario configuration.
 
==Execute Query==
 
After the one-time setup steps are complete, you can execute your query using the new transformation scenario. Start the transformation by clicking the red Run button (''Apply associated scenarios'') in the Transformation Scenarios window, while your scenario is selected. The results should be immediately displayed in the result panel.
administrator, editor
162

edits

Navigation menu