MULTEXT - Document MQL2. SgmlQL reference/Operators.
Document constructor

The document operator constructs a document from an element.

Prototype

document <-- document
[dockw: name]
[docdtd: string]
body: element

The document type of the new document is set to the generic identifier of the element it is constructed from. By default, the document keyword is set to SYSTEM, and the document DTD is set to a string composed of the document type name followed by the extension ".dtd"

Example

document
  docdtd: "/dtds/dates.dtd"
  body: 
     element DATES
     content: (top DATE within file $myfile);

<DOCTYPE DATES SYSTEM "/dtds/dates.dtd">
<DATES>
<DATE>
16 July 1991
</DATE><DATE>
8 September 1992
</DATE><DATE>
May 1988
</DATE><DATE>
6 and 7 May 1991
</DATE><DATE>
14 November 1991
</DATE><DATE>
16 June 1959
</DATE><DATE>
26 October 1992
</DATE><DATE>
18 March 1980
</DATE><DATE>
16 June 1959
</DATE><DATE>
28 January 1992
</DATE><DATE>
4 September 1992
</DATE>
</DATES>



| Top | Next | SgmlQL reference | LPL/CNRS | MULTEXT

Copyright © Centre National de la Recherche Scientifique, 1997.