function
| Library: SGML serializer (OMSGMLWRITE) Import : omsgmlwrite.xmd | Returns: | 
export string source function
   written      utf-8 value switch        utf-8-characters optional initial { false }
           from       value markup source input
      
Argument definitions
 The markup source function sgml.written converts the input markup stream provided as its
        input argument into SGML. The following example demonstrates how the function can be used to write an
        SGML file.
import "omsgmlwrite.xmd" prefixed by sgml. process do sgml-parse document scan #main-input set file "output.sgml" to sgml.written from #content done