Extracting the first set of data within the same <root>

Jerhia

New Member
I have a XSLT question which follows on from the question I asked previously.The challenge is to extract on the set of data from a repeated set with in the same <root>. I have an example XSLT solution from my previous question provided by @Kirill Polishchuk.Extracting a class from the section attribute using xslI just need to extract the first set of data, and ignore the second set starting at number="1"Please note I'm working with XSLT 1.0. Any advice or guidance will be much appreciate.Input:<root> <page number="1" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="2" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="3" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="4" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="5" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="6" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="7" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="8" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="9" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="10" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="11" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="12" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="13" section="Arsenal_Finances">Arsenal_Finances</page> <page number="14" section="Arsenal_Finances">Arsenal_Finances</page> <page number="15" section="Arsenal_Finances">Arsenal_Finances</page> <page number="16" section="Arsenal_Finances">Arsenal_Finances</page> <page number="17" section="Arsenal_Finances">Arsenal_Finances</page> <page number="18" section="Arsenal_Finances">Arsenal_Finances</page> <page number="19" section="Arsenal_Finances">Arsenal_Finances</page> <page number="20" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="21" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="22" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="23" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="24" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="1" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="2" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="3" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="4" section="Arsenal_Stadium">Arsenal_Stadium</page> <page number="5" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="6" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="7" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="8" section="Arsenal_Crowds">Arsenal_Crowds</page> <page number="9" section="Arsenal_Finances">Arsenal_Finances</page> <page number="10" section="Arsenal_Finances">Arsenal_Finances</page> <page number="11" section="Arsenal_Finances">Arsenal_Finances</page> <page number="12" section="Arsenal_Finances">Arsenal_Finances</page> <page number="13" section="Arsenal_Finances">Arsenal_Finances</page> <page number="14" section="Arsenal_Finances">Arsenal_Finances</page> <page number="15" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="16" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="17" section="Arsenal_Outlook">Arsenal_Outlook</page> <page number="18" section="Arsenal_Outlook">Arsenal_Outlook</page> </root>Desired Output:<table><tr><td class="Stadium">Arsenal_Stadium</td><td></td><td class="Crowds">Arsenal_Crowds</td><td></td><td class="Finances">Arsenal_Finances</td><td></td><td class="Outlook">Arsenal_Outlook</td><td></td></tr><tr><td>1</td><td>7</td><td>8</td><td>12</td><td>13</td><td>19</td><td>20</td><td>24</td></tr></table>
 
Back
Top