Re: dsssl, mode and with-mode

Subject: Re: dsssl, mode and with-mode
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 22 Jan 1999 11:23:15 GMT
> What is really a grove? Is it a parsed SGML document?

More or less. It is the parse tree of the document with some other extra
structure which means that it is not really a tree, so it got called a
grove (which in my mind brings up a picture of a small wood, ie a small
set of trees, which is not really the right picture, but it's only a
name)

> What is really a sosofo (in the "make entity"/"jade -t sgml" context)?
> Is it a tree structure of the html output to be inserted at the
> current point

well the flow object is the output from dsssl that is the abstract
instructions to the back end to make that bit of tree structure.
and the make instruction takes a
_s_pecification _of_ a _s_equence _o_f _f_low _o_bjects

> What exactly does the "with-mode" construction?

you can have different sets of transformation rules, grouped into a
mode, then say which set you want to use. You don't have to use modes
you can just always use the default mode.

> It seems that the word "TITLE" is present two places.


(element section
	 (make sequence
	       (with-mode extract-title-text
                   (process-matching-children "TITLE"))
	       (process-children)))


you process the subtree twice.

Firstly you just process the children that match  "TITLE"
using the rules in the mode extract-title-text

and then you process all the children and so get the title again
if there is any rule in the default set that would match the title
element.

David


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread