Executing an XQuery from the Command Line

 

XQuery support is available only in 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 7 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 7. StylusXql Command Line Parameters

XML Schema Documentation Generator

Stylus Studio's XML Schema Editor includes an integrated XML Schema documentation generator, allowing you to easily publish XML content models defined in XML Schema in a convenient, HTML format. A screenshon of the XML Schema Editor is shown here.

Scientific, Photo & Control Equipment

Scientific, photo & control equipment companies hear clicks and beeps all day. But, when it comes to data integration it needs to be done in a flash, that's why they use Stylus Studio. Come see which top companies are seeing XML in a brand new light!

Learn SQL/XML

Learn how to access and update relational databases using industry-standard SQL/XML technologies along with Stylus Studio's DB-to-XML editor and File Explorer technologies.

Food & Beverage Services

"I'll have a burger and a side of Stylus Studio", says these top food & beverage services that use Stylus Studio in everyday operations. Come see which food & beverage services eat up the idea of having the most powerful XML IDE at their finger tips!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member