This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Grouping
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Grouping
- From: "Ramesh Krishnan Sangeetham" <lak_ram at lycos dot com>
- Date: Fri, 15 Jun 2001 18:14:36 -0400
- Organization: Lycos Mail (http://mail.lycos.com:80)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi
I am new to xsl.. This may be a repeat question... I am not able to solve this. I tried to convert the xml file to the another xml file.. What I should get is a multiple set of the output file as given below.. instead I am getting the output as follows..
Can anyone help me in getting conversion the way I want..
Thanks,
Ramesh
<!-- Beginning of input file-->
<xml>
<DItems>
<ItemS>
<CID>
<lbl>Item</lbl>
<PermName>T_ITEM</PermName>
</CID>
<ITModify>
<ItemID>
<Prop>
<lbl>itemnumber</lbl>
<PermName>t_item_number</PermName>
<Value>string</Value>
</Prop>
<PointProp>
<lbl>countrycode</lbl>
<PermName>t_country_coder</PermName>
<Value>US</Value>
</PointProp>
</ItemID>
<ItemDetail>
<Prop>
<lbl>size</lbl>
<PermName>t_size</PermName>
<Value>88</Value>
</Prop>
<PointProp>
<lbl>size uom</lbl>
<PermName>t_size_uom</PermName>
<CID>
<lbl>uom class</lbl>
<PermName>t_uom_table</PermName>
</CID>
<ItemID>
<Property>
<lbl>uomname</lbl>
<PermName>t_uomname</PermName>
<Value>milimeter</Value>
</Property>
<Property>
<lbl>uomsymbol</lbl>
<PermName>t_uomsymbol</PermName>
<Value>mm</Value>
</Property>
</ItemID>
<Value>8.5</Value>
</PointProp>
<Prop>
<lbl>desc1</lbl>
<PermName>t_desc2</PermName>
<Value>string1</Value>
</Prop>
<Prop>
<lbl>desc2</lbl>
<PermName>t_desc1</PermName>
<Value>string1</Value>
</Prop>
<Prop>
<lbl>pludesc</lbl>
<PermName>t_pludesc</PermName>
<Value>pludesc</Value>
</Prop>
<Prop>
<lbl>itemdesc</lbl>
<PermName>t_itemdesc</PermName>
<Value>itemdesc</Value>
</Prop>
</ItemDetail>
</ITModify>
</ItemS>
<ItemS>
...
..
..some other block as the previous one with different sets of value
..
</ItemS>
<ItemS>
<CID>
<lbl>Item</lbl>
<PermName>T_ITEM</PermName>
</CID>
<ITModify>
<ItemID>
<Prop>
<lbl>itemnumber</lbl>
<PermName>t_item_number</PermName>
<Value>string</Value>
</Prop>
<PointProp>
<lbl>countrycode</lbl>
<PermName>t_country_coder</PermName>
<Value>FR</Value>
</PointProp>
</ItemID>
..some other block as the previous one with different sets of value
</ITModify>
...
.....
</ItemS>
<ItemS>
...
..some other block as the previous one with different sets of value
..
...
</ItemS>
</DItems>
</xml>
<!-- end of input file -->
<!-- Beginning of the output file not expected one-->
<Item>
<Size>
<countrycode>US</countrycode>
<UOM>
<Name>milimeter</Name>
<Symbol>mm</Symbol>
</UOM>
<Value>8.5</Value>
</Size>
<Size>
<countrycode>FR</countrycode>
<UOM>
<Name>..</Name>
<Symbol>..</Symbol>
</UOM>
<Value>8.5</Value>
</Size>
....
....
</Item>
<!-- End of the output file not expected one-->
<!-- Beginning of the output file EXPECTED-->
<Item>
<Size>
<countrycode>US</countrycode>
<UOM>
<Name>milimeter</Name>
<Symbol>mm</Symbol>
</UOM>
<Value>8.5</Value>
</Size>
<desc1>
<countrycode>US</countrycode>
<Value>string1</Value>
</desc1>
<desc2>
<countrycode>US</countrycode>
<Value>string1</Value>
</desc2>
<pludesc>
<countrycode>US</countrycode>
<Value>pludesc</Value>
</pludesc>
<itemdesc>
<countrycode>US</countrycode>
<Value>itemdesc</Value>
</itemdesc>
</Item>
<Item>
<Size>
<countrycode>FR</countrycode>
<UOM>
<Name>..</Name>
<Symbol>..</Symbol>
</UOM>
<Value>8.5</Value>
</Size>
<desc1>
<countrycode>FR</countrycode>
<Value>string1</Value>
</desc1>
<desc2>
<countrycode>FR</countrycode>
<Value>string1</Value>
</desc2>
<pludesc>
<countrycode>FR</countrycode>
<Value>pludesc</Value>
</pludesc>
<itemdesc>
<countrycode>FR</countrycode>
<Value>itemdesc</Value>
</itemdesc>
</Item>
<!-- End of the output file EXPECTED-->
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list