This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

some help, please...


Essentially, I need to know how to do grouping.  We are a Microsoft shop,
and we would prefer the solution come from MSXML2 or 3.

I need to change:


<rows>
	<row company="FL - 1234" type="new" amount="5" count="10">
	<row company="FL - 1234" type="new" amount="10" count="8">
	<row company="FL - 1234" type="new" amount="15" count="5">
	<row company="FL - 1234" type="new" amount="20" count="4">
	
	<row company="FL - 1234" type="recharge" amount="5" count="6">
	<row company="FL - 1234" type="recharge" amount="10" count="5">
	<row company="FL - 1234" type="recharge" amount="15" count="4">
	<row company="FL - 1234" type="recharge" amount="20" count="3">
	
	<row company="FL - 2345" type="new" amount="5" count="20">
	<row company="FL - 2345" type="new" amount="10" count="8">
	<row company="FL - 2345" type="new" amount="15" count="15">
	<row company="FL - 2345" type="new" amount="20" count="9">
	
	<row company="FL - 2345" type="recharge" amount="5" count="25">
	<row company="FL - 2345" type="recharge" amount="10" count="16">
	<row company="FL - 2345" type="recharge" amount="15" count="11">
	<row company="FL - 2345" type="recharge" amount="20" count="4">
	
	<row company="FL - 3456" type="new" amount="5" count="13">
	<row company="FL - 3456" type="new" amount="10" count="1">
	<row company="FL - 3456" type="new" amount="20" count="4">
	
	<row company="FL - 3456" type="recharge" amount="5" count="10">
	<row company="FL - 3456" type="recharge" amount="10" count="8">
	<row company="FL - 3456" type="recharge" amount="15" count="5">
	<row company="FL - 3456" type="recharge" amount="20" count="4">
</rows>


into:


<companies>
	<company name="FL - 1234">
		<type name="new">
			<amount name="5" count="10" />
			<amount name="10" count="8" />
			<amount name="15" count="5" />
			<amount name="20" count="4" />
		</type>
		<type name="recharge">
			<amount name="5" count="6" />
			<amount name="10" count="5" />
			<amount name="15" count="4" />
			<amount name="20" count="3" />
		</type>
	</company>

	<company name="FL - 2345">
		<type name="new">
			<amount name="5" count="20" />
			<amount name="10" count="8" />
			<amount name="15" count="15" />
			<amount name="20" count="9" />
		</type>
		<type name="recharge">
			<amount name="5" count="25" />
			<amount name="10" count="16" />
			<amount name="15" count="11" />
			<amount name="20" count="4" />
		</type>
	</company>

	<company name="FL - 3456">
		<type name="new">
			<amount name="5" count="13" />
			<amount name="10" count="1" />
			<amount name="15" count="0" />
			<amount name="20" count="4" />
		</type>
		<type name="recharge">
			<amount name="5" count="10" />
			<amount name="10" count="8" />
			<amount name="15" count="5" />
			<amount name="20" count="4" />
		</type>
	</company>
</companies>

Adam Wilson
Web Applications Developer
Electronic Payment Exchange (EPX)
(302) 326-0700x2163
100 West Commons Blvd., Suite 214
New Castle, DE  19720


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]