Download Altova XMLSpy 2011

Transcript
XSLT and XQuery
XQuery
131
XML source is the starting context item available at the root level of the XQuery document.
Paths that begin with a leading slash are resolved with this document node as its context item.
To execute an XQuery document:
1. Make the XQuery document the active document.
2. Select XSL/XQuery | XQuery Execution or click the
Define an XML Source for the XQuery dialog.
toolbar icon. This opens the
3. Do one of the following:
 To select an XML file, use either the Browse button or the Window button (which
lists files that are open in XMLSpy and that are in XMLSpy projects). Select an XML
source if you wish to assign its document node as the context item for the root level
of the XQuery document. Click Execute.
 To skip this dialog click Skip XML.
The result document is generated as a temporary file that can be saved to any location with the
desired file format and extension.
XQuery Variables
If you are using the Altova XQuery engine, XQuery variables can be stored in a convenient GUI
dialog. All the stored variables are passed to the XQuery document each time you execute an
XQuery document via XMLSpy. For more information, see the description of the XSLT
Parameters / XQuery Variable command.
Altova XQuery Engine
For details about how the Altova XQuery Engine is implemented and will process XQuery files,
see XQuery Engine Implementation.
© 2011 Altova GmbH
User Manual