Re: Processing Siblings As Though They Were Children

Subject: Re: Processing Siblings As Though They Were Children
From: "W. Eliot Kimber" <eliot@xxxxxxxxxxxxxx>
Date: Thu, 22 Oct 1998 16:54:03 -0500
At 05:43 PM 10/22/98 -0400, Norman Walsh wrote:
>/ "W. Eliot Kimber" <eliot@xxxxxxxxxxxxxx> was heard to say:
>| <!ELEMENT containter1
>|   (A?,B?,C?,
>|    (SubHead, A?, B?, C?)*)
>| >
>| On the output, I want to put any occurrence of "SubHead, ..." into a common
>| container.
>| I know I can loop over the children of container1 explicitly. What I can't
>| figure out--and I suspect I'm missing something fundamental or obvious--is
>| how to inject the container element into the output so that its content is
>| the result of processing subsequent As, Bs, and Cs, but not SubHeads.  
>| Am I missing something obvious or is this in fact hard to do?
>I'm not sure I quite see what you're after.  What's the content model
>of the result?  Are all A, B, Cs supposed to be in another container,
>or only the ones that come after the SubHead.

Only the ones that come after the SubHead.

>I did a bunch of nastly list manipulation in the DocBook index code
>to handle the fact that in DocBook Primary/Secondary/Tertiary are
>siblings but in HTML, they have to be hierarchical.  That might be
>useful to you...

I'll take a look when I get chance.

It turns out that for this particular job, it's much cheaper to fix these
cases by hand, but I still want to know how to solve the problem more


<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 75202.  214.953.0004

 DSSSList info and archive:

Current Thread