I'm new to XSLT and would appreciate some help on issue below:
I have XML including concatenated info about packages. I would need to parse them into CSV using XSLT (separator would be semicolon). I would need to have separate lines generated for all concatenated items, so some for-each - looping is needed also.
The XML looks like this:
<Package>
<Content>Goodies</Content>
<Weight>TotalWeight</Weight>
<Dimensions>Lenght1/Width1/Height1/Weight1,Lenght2/Width2/Height2/Weight2</Dimensions>
<PackingType>Pallet</PackingType>
</Package>
And the desired output would look like this:
1;Goodies;TotalWeight;Lenght1;Width1;Height1;Weight1;Pallet
2;Goodies;TotalWeight;Lenght2;Width2;Height2;Weight2;Pallet
And this should be done using XSLT 1.0 (yep, we have some limitations).
Thanks in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…