sgml.written

function

Library: SGML serializer (OMSGMLWRITE)
Import : omsgmlwrite.xmd

Returns:


Declaration
export string source function
   written      utf-8 value switch        utf-8-characters optional initial { false }
           from       value markup source input
      

Argument definitions

input
markup event stream that will be converted to SGML
utf-8-characters
indicates if the non-ASCII characters should be encoded as UTF-8 or as numerical character references


Purpose

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

Other Library Functions