apples into baskets

Subject: apples into baskets
From: Evgenii Bazarov <evgeniibazarov@xxxxxxx>
Date: 2 Jun 00 03:14:53 MSD
What I am trying to do is to put fruits into baskets:

INPUT:

<basket/>
<apples>3</apples>
<oranges>5</oranges>
<basket/>
<apples>7</apples>
<oranges>9</oranges>

OUTPUT:
<harvest>
<basket id=1>
 <apples>3</apples>
 <oranges>5</oranges>
</basket>
<basket id=2>
 <apples>7</apples>
 <oranges>9</oranges>
</basket>
</harvest>

I don't know hom many baskests potentially coming from the input.

I tried couple of things, but wasn't lucky. Can somebody
help with an idea?

Thanks,
Evg

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread