hi martin,
thanks for the solution, but as with davids template, my example was to
easy: <leerzeile> elements occur nearly everywhere.
> but I am not sure it will work as you want with other possible input
> documents you might have.
> Where all can "leerzeile" elements occur? What determines where they
> have to end up in the result?
<leerzeile> elements have appear in the right order (in the example
below at position 13_) there are only grouped into <einschub> container
elements if they are located between <einschubN> with the same N.
therefore: <einschub1>..</><leerzeile/><einschub2>..</> has to end up
with <einschub typ="1">..</><leerzeile/><einschub typ="2">..</>
i produced a little more complex example:
<kapitel>
<u1>1_heading is not an abs</u1>
<abs>2_first</abs>
<einschub1>3_first_ein</einschub1>
<einschub1>4_second_ein</einschub1>
<leerzeile/>
<einschub1>6_third_ein</einschub1>
<abs>7_second</abs>
<einschub2>8_first_ein2</einschub2>
<u-zwischen>9_separator</u-zwischen>
<abs>10_not the end</abs>
<abs>11_next</abs>
<abs>12_bext2</abs>
<leerzeile/>
<abs>14_the end </abs>
</kapitel>
regards,
gregor
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--