Re: process-children

Subject: Re: process-children
From: James Clark <jjc@xxxxxxxxxx>
Date: Wed, 02 Apr 1997 21:39:32 +0700
At 06:41 01/04/97 -0500, Paul Prescod wrote:
>Is this snippet from my tutorial accurate? 
>
>"Inside a make expression, after the keyword argument list, you can 
>specify a "content expression" that tells the DSSSL processor what to
>put in the flow object. In this case, ( (process-children) ) we have
>asked the DSSSL processor to process the child nodes (usually children
>elements and individual character nodes) of this element, and use them
>for the content of the paragraph flow object."

A sosofo in a content expression doesn't always end up as part of the
content of the flow object constructed by the make expression in which it
appears.  If the sosofo is labeled and the label doesn't match one of the
ports of the flow object, then it will "bubble up" into the content of a
flow object higher up the tree.

>Are the child nodes ever anything other than sub-elements and
>characters? I can't think of what else they could be.

They could be PIs or references to external data entities, but neither of
these are accessible with the query option.

>The "children" in process-children *is* referring to the nodes in the
>grove, (from the SGML document or STTP process), right?

Yes.

James

Current Thread