Executing an XQuery from the Command Line

 

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

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

Simple API for XML (SAX)

SAX stands for Simple API for XML - SAX is an XML standard used everywhere in Stylus Studio, for parsing and building representations of XML documents.

DTD vs. Schema

Stylus Studio provides tools for working with both W3C XML Schema and DTD's - this tutorial explains what the differences are between the two, providing a technical comparison of DTD vs Schema.

Building DataDirect XML Converter Applications with Stylus Studio

DataDirect XML Converters are Java and .NET components that enable access to any data (flat files, EDI) from your application code. Learn how to deploy XML applications today.

XMLSCHEMA-DEV Blog

XML Schema-DEV is an active community for XML Schema-releated development - join the discussion on XML Schema standards, tools, implementations and more. Bookmark this RSS or ATOM feed today!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member