(dsssl) Modification of the hierarchy

Subject: (dsssl) Modification of the hierarchy
From: jany.quintard@xxxxxxxxxx
Date: Fri, 20 Jul 2001 11:29:37 +0200 (CEST)
Hi all.
I am trying to reorganize an SGML document. The point is to make "trees"
from "flat" elements.
What I have is
<division>
  <para Level="1">
  <para Level="2">
  <list Level="3">
  <list Level="3">
  <list Level="2">
So, each element following an element with a higher Level (in this case,
higher means less, sorry) is a sub element of the preceding.

And I want
<division>
  <para Level="1">
    <para Level="2">
      <list Level="3">
      <list Level="3">
    <list Level="2">
So, I suppose the way to go is :
- select the children of the divison to build an input node-list.
- build a list of list of node-lists matching the structure of the tree
- process this list

I am not sure that this is the best way. Does anyone have a better
idea ?

TiA. Jany


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

Current Thread