Hi all,
This is a urgent situation. I´m counting on you guys to
give some clue to get the right XSL Transformation.
I need do group all nested tags <Entry> inside tag
<Record> according to an unique combination of two
atributes ('Product' and 'Customer'). Something like: for
each concatenation of 'Product' and 'Customers' find all
<Entry> because this last tag as different 'Periods'
ORIGINAL XML (with lots of <Records>):
<HistoricSales>
<Record Product="1053865" Customer="10127876">
<Entry Period="6">
<Units Sold="0" Free="0" Return="0"/>
<Amounts Cost="0" Gross="0" Return="0"/>
</Entry>
</Record>
<Record Product="1053865" Customer="10127876">
<Entry Period="2">
<Units Sold="0" Free="0" Return="0"/>
<Amounts Cost="0" Gross="0" Return="0"/>
</Entry>
</Record>
<Record Product="1022222" Customer="0999999">
<Entry Period="3">
<Units Sold="0" Free="0" Return="0"/>
<Amounts Cost="0" Gross="0" Return="0"/>
</Entry>
</Record>
(...)
</HistoricSales>
FINAL XML:
<HistoricSales>
<Record Product="1053865" Customer="10127876">
<Entry Period="6">
<Units Sold="0" Free="0" Return="0"/>
<Amounts Cost="0" Gross="0" Return="0"/>
</Entry>
<Entry Period="2">
<Units Sold="0" Free="0" Return="0"/>
<Amounts Cost="0" Gross="0" Return="0"/>
</Entry>
</Record>
<Record Product="1022222" Customer="0999999">
<Entry Period="3">
<Units Sold="0" Free="0" Return="0"/>
<Amounts Cost="0" Gross="0" Return="0"/>
</Entry>
</Record>
(...)
</HistoricSales>
At this moment I trying Muenchian Method. Is this the
best way. Thanks in advance.