Subject: Re: [xsl] breaking up XML on page break element From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 4 Jul 2014 15:18:31 -0000 |
Hi all,
Here is a fun one I thought I could share
I have a nicely nested XML (a bit TEI like) and markers for page breaks can happen everywhere in the document (as empty elements)
Now I want to break the document per page, reconstructing the structure So in a first step, I want to isolate the pagebreak to the highest level
<book> <title>...</title> <section> <para>aaa<pb/>bbb</para> </section> </book>
to become
<book> <title>...</title> <section> <para>aaa</para> </section> <pb/> <section> <para>bbb</para> </section> </book>
Bearing in mind I need a generic solution and pagebreaks can happen at every level
Any thoughts? I am not looking for code, just curious on how people would attack this
Thanks
Geert
-- Gerrit Imsieke GeschC$ftsfC<hrer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@xxxxxxxxx, http://www.le-tex.de
Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930
GeschC$ftsfC<hrer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard VC6ckler
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] breaking up XML on page break, Geert Bormans geert@ | Thread | Re: [xsl] breaking up XML on page b, Geert Bormans geert@ |
[xsl] breaking up XML on page break, Geert Bormans geert@ | Date | Re: [xsl] breaking up XML on page b, Geert Bormans geert@ |
Month |