At 2018-05-16T14:56:00-04:00, John Clements wrote:

> In a quick scan of the existing quasi-documentation for ssax.rkt,
> make-parser was the only one that looked to me like it might
> productively be used from outside.

`ssax:read-pi-body-as-string' is another identifier from sxml/ssax/ssax,
which I am finding useful.  Here is a usage adapted from

(define (outline-pi port pi-tag seed)
  ;; Read the body of PI and ignore it.
  (let ((dummy (ssax:read-pi-body-as-string port)))

This procedure can then be specified as a handler for processing
instructions (PIs) in the document, which just ignores them.  Without
such a dummy handler, one gets a warning message from ssax:make-parser
that PIs are being left unprocessed.

However, I am not advocating a full export of ssax from sxml.  I am fine
with importing ssax separately in my files.  I just thought that it is
good to keep a record of its useful identifiers.


N. Raghavendra <>,
Harish-Chandra Research Institute,

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to