I need to apply XSLT 1.0 transformation to following XML:
<ProfitLossFinancials>
<ProfitLossFinancial>
<Year>2013</Year>
<Turnover>13</Turnover>
<Profit>13</Profit>
</ProfitLossFinancial>
<ProfitLossFinancial>
<Year>2012</Year>
<Turnover>12</Turnover>
<Profit>12</Profit>
</ProfitLossFinancial>
</ProfitLossFinancials>
<BalanceSheetFinancials>
<BalanceSheetFinancial>
<Year>2013</Year>
<FixedAssets>13</FixedAssets>
</BalanceSheetFinancial>
<BalanceSheetFinancial>
<Year>2011</Year>
<FixedAssets>11</FixedAssets>
</BalanceSheetFinancial>
</BalanceSheetFinancials>
to have following output:
<Financials>
<Financial>
<Year>2013</Year>
<Turnover>13</Turnover>
<Profit>13</Profit>
<FixedAssets>13</FixedAssets>
</Financial>
<Financial>
<Year>2012</Year>
<Turnover>12</Turnover>
<Profit>12</Profit>
<FixedAssets/>
</Financial>
<Financial>
<Year>2011</Year>
<Turnover/>
<Profit/>
<FixedAssets>11</FixedAssets>
</Financial>
</Financials>
How to do that?