Standard input can be used to input a document to an SgmlQL query when not in interactive mode, using the operator stdin. The format can be specified by giving to nameone of the values NSGML or SGMLS. If the format is not specified, it is detected automatically from the input.
Prototype
document <-- stdin [ format: name ]
Examples
mtsgmlql -query "first DATE within stdin" < myfile-ces.sgml<DATE> 16 July 1991 </DATE>