Difference between revisions of "Integrating oXygen"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
===Data Source=== | ===Data Source=== | ||
− | #Start oXygen and go to | + | #Start oXygen and go to ''Options'' → ''Preferences'' → ''Data Sources''. |
− | #Add a new Data Source with the | + | #Add a new Data Source with the ''New'' button. |
− | #Enter Name | + | #Enter Name "BaseX" and choose ''XQuery API for Java(XQJ)'' as type. |
− | #Add the three JAR files with the | + | #Add the three JAR files with the ''Add'' Button. |
− | #Now press | + | #Now press ''OK'', and your Data Source is ready. |
===Connection=== | ===Connection=== | ||
− | #Now press | + | #Now press ''New'' in the Connection Panel (located in ''Data Sources''). |
− | #Enter Name | + | #Enter Name "BaseXConnection" and select "BaseX" in the Data Source box. |
− | #Now press | + | #Now press ''OK'', and your connection is ready. |
− | + | ||
==Usage== | ==Usage== | ||
Revision as of 21:03, 28 January 2011
This tutorial describes how to use the BaseX XQuery Processor to execute queries in the oXygen XML Editor. You can access the existing databases from BaseX within oXygen and work with the results as XML.
Required Downloads
- basex.jar: Main code
- basex-api.jar: Implementation of the XQJ API
- xqj-api.jar: XQuery for Java (Interface)
- oXygen XML Editor: Install the oXygen XML Editor on your computer
Setting up
Data Source
- Start oXygen and go to Options → Preferences → Data Sources.
- Add a new Data Source with the New button.
- Enter Name "BaseX" and choose XQuery API for Java(XQJ) as type.
- Add the three JAR files with the Add Button.
- Now press OK, and your Data Source is ready.
Connection
- Now press New in the Connection Panel (located in Data Sources).
- Enter Name "BaseXConnection" and select "BaseX" in the Data Source box.
- Now press OK, and your connection is ready.
Usage
The query execution works as follows:
- Configure a new transformation scenario in
Window » Show View » Transformation Scenarios
. - Press the
plus
sign to add a new scenario. - Enter a Name, XML URL (your xml file or leave it empty) and the XQuery URL (your query file).
- Choose
"BaseXConnection"
in the combo box. - Press
OK
, and your scenario is ready. Now you can start the transformation. - The results should immediately occur in the result panel.