[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Grouping

Subject: Grouping
From: "Ramesh Krishnan Sangeetham" <lak_ram@xxxxxxxxx>
Date: Fri, 15 Jun 2001 18:14:36 -0400
sangeetham classes
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


Current Thread
  • Grouping
    • Ramesh Krishnan Sangeetham - Fri, 15 Jun 2001 18:12:41 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.