Tomaz Erjavec wrote:
> While everybody is in a much appreciated didactic mood, I will also
> ask something else that has been haunting me: the infamous milestone
> elements.
I wonder if this problem is not simplified by multi-pass processing,
either using trees in memory, or by a file pipeline.
so take
<div><head>One</head>
hello
<lb/>
goodbye
</div>
<div><head>Two</head>
merry
<lb/>
christmas
</div>
and transform it to
<PAGE>
<heading>One</heading>
hello
</PAGE>
<PAGE>
goodbye
<heading>Two</heading
merry
</PAGE>
<PAGE>
christmas
</PAGE>
and then build the HTML from that. a transform which throws away one
sort of structure, and builds a new one, is fairly easy to imagine?
using the dread disable-output-escaping trick if you have to?
The alternative is to wait 5 minutes, and wait for Michael B to show the
really clever way.....
--
Sebastian Rahtz Information Manager
Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
|