Re: [xsl] regrouping split elements

Subject: Re: [xsl] regrouping split elements
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Mon, 21 Dec 2009 18:28:58 +0100
Dear James,

you are right: for-each-group is probably not *the* right, but an appropriate approach. Maybe you find useful. Look for mode="join-segs" around line 1045 in the current version.


James Cummings schrieb:
Hi there,

I'm trying to up-scale some bibliographic output converted with a
docxtotei stylesheet and then tidy it up somewhat.  The problem is
that the output seems to randomly break in the middle of words.  So
the current output I have is:

        <hi rend="bold">Dibdin</hi>
        <hi rend="bold">, Thomas Jo</hi>
        <hi rend="bold">hn</hi>


But to get this first step done, I've started out a number of
different ways before hitting stumbling blocks with
previous/following-sibling.  Is the right approach (in XSLT2) instead
to do something like xsl:for-each-group on the value of hi/@rend
inside each 'p'?

Any thoughts appreciated,

-- Gerrit Imsieke Geschdftsf|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,

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschdftsf|hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vvckler

Current Thread