Validating XML from the Command Line

You use the StylusValidator utility to validate XML from the command line. StylusValidator uses the built-in Stylus Studio XML validator. All output from this utility goes to stdout.

The StylusValidator utility takes the following format:

StylusValidator [-q] [-noval] [-schema] filename

Table 11 describes the parameters for the StylusXql command.

Parameter
Description
[-q]
Quiet mode - errors are not printed to stdout.
[-noval]
Checks only for well-formedness. Does not check for errors.
[-schema file ]
Validates the XML document against the XML Schema specified in the file parameter.
filename
The path of the XML document you want to validate.
Table 11. StylusValidator Command Line Parameters

Using Stylus Studio with RenderX XEP

RenderX XEP is a production-quality engine that converts XSL:FO into PDF or PostScript files. You can use RenderX XEP in place of the Apache FOP engine to render PDF files from Stylus Studio.

XML-DEV Discussion Forum

XML-DEV is a leading technical forum for XML discussion and a valuable free XML learning resource. Subscribe to the XML-DEV email discussion forum today to help further your XML education.

Translating XML documents to X12

In-place, via XSLT and via XQuery are all mechanisms supported for converting XML to X12

Stylus Studio Lends a Helping Hand to the New Orleans Reconstruction Efforts

Read how Stylus Studio is helping with the on-going hurricane Katrina reconstruction efforts in New Orleans.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member