Executing an XQuery from the Command Line

 

XQuery support is available only in Stylus Studio XML Enterprise Edition and Stylus Studio XML Professional Edition.

You use the StylusXql utility to execute an XQuery from the command line. The format for invoking the utility is as follows:

StylusXql [-in <source>] [-out< output file>] [-param name+value] [-i] [-debug host[:port]] <XQuery file>

Table 10 describes the parameters for the StylusXql command. All parameters are required.

Parameter
Description
-in <source>
The path of the XML document to be used to set the current context for the XQuery.
-out <output file>
File to which you want the XQuery result to be written. The default is stdout.
-param name=value
The name-expression pair of a variable in the XQuery specified in the XQuery file parameter.
-i
Indents the XQuery result.
-debug host[:port]
Debugs the query using the debug server specified by the host and, optionally, port parameters.
XQuery file
The path of the XQuery you want to execute against the file specified in the -in <source> parameter.
Table 10. StylusXql Command Line Parameters

Generate XML Schema

Generate XML Schema data models from one or more XML instance documents, or by converting other data models (DTD's, Relational Schemas, EDIFACT, EDI, etc.)

Getting EDI to XML and back to EDI Again: Round Trip Engineering using Stylus Studio URL Adapters

A free online video demonstration shows how to use Stylus Studio's Adapter URL technologies to convert EDI to XML and back again. Convert, validate, view and edit EDIFACT data directly in Stylus Studio.

Configuring an ODBC Data Source Using DataDirect SequeLink Server

How to create and configure an ODBC system data source for use with Stylus Studio using DataDirect Sequelink Server.

XQuery Talk

Join the XQuery Talk mailing list for a practical discussion about XQuery. It's a place to work together to learn a new language, talk about problem solutions, discuss engines and implementations, chat about the latest XQuery news and more.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member