- Documentation
- Reference manual
- Packages
- SWI-Prolog HTTP support
- The HTTP server libraries
- SWI-Prolog HTTP support
3.21.3 Adding rules for html//1
In some cases it is practical to extend the translations imposed by
html//1. We used this technique to define translation rules for the
output of the SWI-Prolog library(sgml)
package.
The html//1 non-terminal first calls the multifile ruleset html_write:expand//1.
- html_write:expand(+Spec)
//
- Hook to add additional translation rules for html//1.
- html_quoted(+Atom)
//
- Emit the text in Atom, inserting entity-references for the
SGML special characters
<&>
. - html_quoted_attribute(+Atom)
//
- Emit the text in Atom suitable for use as an SGML attribute,
inserting entity-references for the SGML special characters
<&>"
.