RE: one file into many

Subject: RE: one file into many
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Tue, 10 Aug 1999 22:23:23 -0400
Hi Darell,
 
I seems that you too is doing something I am investigating. We just got a talk this week with Matthias about this. I do not know yet for the simple-page-sequence. It seems that you did the test and when you do that, only a page break happens (good to know). However, when you use the -t html mode (html+CSS) output, each time you "make scroll" you create a new file having the output file name + increment. So, to take your example you would have:
 
(if we suppose that output file was named "meal.htm")
 
meal1.htm
meal2.htm
etc...
 
I suffice to have the following rules to create several files:
 
(element MEAL
    (make scroll
        (process-children)
    )
)
 
(element DISH
    (make paragraph
        (process-children)
    )
)
 
Each it encounters the MEAL element, a scroll FO is created and then a new file is created (with the increment appended to the original output file name).
 
So now the debate is open. Is it desirable to have OpenJade (I cannot speak for Jade only James can) to create a new file each time a "simple-page-sequence" FO is created like we already have for the "scroll" FO.
 
I am all ears to your comments.
 
Speaking for the OpenJade team.
 
regards
 
 
 -----Original Message-----
From: owner-dssslist@xxxxxxxxxxxxxxxx [mailto:owner-dssslist@xxxxxxxxxxxxxxxx]On Behalf Of Darrell W. Royter
Sent: Tuesday, August 10, 1999 11:51 AM
To: dssslist@xxxxxxxxxxxxxxxx
Subject: one file into many

I have yet another question to post for you all...

I have one SGML file, and I want jade to process the file by breaking it
into multiple files at a given element. For example, if I had a giant
cookbook in SGML, and I wanted to split the book based on the meal, so I
would have one for breakfast, one for lunch recipies, and a third for
dinners. The structure might look like this :

<BOOK>
<MEAL>Lunch
<DISH>Peanut Butter and Jelly</>
</>
<MEAL>Dinner
<DISH> Fried Chicken</>
</>
</>

It would of course be more involved than that, but you get the idea. If I
were to use Jade to output this as rtf, I could define the make-simple-page
sequence on the MEAL element, but that woud only put in a page break for
each occurance of MEAL. I want Jade to output a new file when it comes
across the MEAL tag.

Can this be done? I have looked through some documentation, and nothing
jumps out at me as the answer.

Thanks in advance for your help!

-Darrell
Current Thread