Re: [xsl] position behavior in nested grouping

Subject: Re: [xsl] position behavior in nested grouping
From: Ganesh Babu N <nbabuganesh@xxxxxxxxx>
Date: Thu, 30 Jul 2009 18:24:48 +0530
all those should be clubbed into single section by taking group-adjcent.

The output should be

                       <sections>
                              <section-title>Contents</section-title>
                          <section>
                               <section-head>Abstracts of the Series
of Fascia Congress - Part
4</section-head>
                               <para>
                                       <page>270</page>
                               </para>
                          </section>
                         <section>
                            <section-head/>
                              <para>
                                       <page>271</page>
                               </para>
                               <para>
                                       <page>271</page>
                               </para>
                          </section>
                          <section>
                               <section-head>Abstracts of the Series
of Fascia Congress - Part
4</section-head>
                               <para>
                                       <page>272</page>
                               </para>
                       </section>
                       <section>
                               <section-head>Prevention &amp;
Rehabilitation</section-head>
                               <section-subhead>Editorial</section-subhead>
                               <para>
                                       <page>273</page>
                               </para>
                               <para>
                                       <page>277</page>
                               </para>
                       </section>
                       <section>
                               <section-subhead>Learning
Methodology</section-subhead>
                               <para>
                                       <page>284</page>
                               </para>
                       </section>
               </sections>

Regards,
Ganesh


On Thu, Jul 30, 2009 at 6:16 PM, Martin Honnen<Martin.Honnen@xxxxxx> wrote:
> Ganesh Babu N wrote:
>
>> New Input:
>>
>> <articles>
>>     <row>
>>        <col>627</col>
>>        <col>Abstracts of the Series of Fascia Congress - Part 4</col>
>>        <col>270</col>
>>     </row>
>>     <row>
>>        <col>661</col>
>>        <col/>
>>        <col>270</col>
>>     </row>
>>     <row>
>>        <col>676</col>
>>        <col/>
>>        <col>271</col>
>>     </row>
>>     <row>
>>        <col>719</col>
>>        <col>Abstracts of the Series of Fascia Congress - Part 4</col>
>>        <col>272</col>
>>     </row>
>>     <row>
>>        <col>706</col>
>>        <col>Prevention &amp; Rehabilitation|Editorial</col>
>>        <col>276</col>
>>     </row>
>>     <row>
>>        <col>690</col>
>>        <col>Prevention &amp; Rehabilitation|Editorial</col>
>>        <col>283</col>
>>     </row>
>>     <row>
>>        <col>721</col>
>>        <col>Prevention &amp; Rehabilitation|Learning Methodology</col>
>>        <col>291</col>
>>     </row>
>>  </articles>
>>
>> I am unable to provide two values in group-by attribute. Please
>> suggest how to achieve this.
>
> Can you show and explain the output you want to achieve for that input
> above? What should happen with 'row' elements where col[2] is empty?
>
> --
>
>        Martin Honnen
>        http://msmvps.com/blogs/martin_honnen/

Current Thread