File "markup"

This file provides predicates to generate markup. This is done through filtered streams that automatically escape plain text. We provide markup streams that either are piggy backing on ordinary streams or on DOM elements buffered by a DOM machine. The escaping can be bypassed by the predicates tag/[1,2] and tag_format/[2,3].

The following markup predicates are provided:

tag(M):
tag(W, A):
The predicate emits the start tag, end tag or single tag M. The binary predicate allows specifying a DOM writer W.
tag_format(T, L):
tag_format(W, T, L):
The predicate emits the start tag, end tag or single tag that results from formatting the template T with the arguments L.The ternary predicate allows specifying a DOM writer W.
dom_output_new(W):
dom_output_new(S, W):
The predicate succeeds in W with a new writer to the cursor. The binary predicate allows specifying an underlying stream S.
dom_error_new(W):
dom_error_new(S, W):
The predicate succeeds in W with a new writer to the cursor. The binary predicate allows specifying an underlying stream S.
dom_cell_current(C):
The predicate succeeds in C with the current cursor.
dom_cell_set(C):
The predicate succeeds. As side effect the cursor is set to C.

Kommentare