example regrouping: test90 regrouping and assigning new names

basic-control-file: cmp90.xml
<?xml version="1.0" encoding="UTF-8"?>
<delivery>
	<list_person>
		<person>
			<firstname                         ident_text="true"  />
			<name                              ident_text="true"  />
			<list_address>
				<address>
					<street            ident_text="true"  />
					<houseno           ident_text="true"  />
					<residence         ident_text="true"  />
				</address>
			</list_address>
		</person>
	</list_person>
</delivery>
toxml-control-file: toxml90.xml
<?xml version="1.0" encoding="UTF-8"?>
<list_name>
	<name>
		<name_text   ident_text="true"  
		                                   path_text='/delivery/list_person/person/name' />
		<list_firstname>
			<firstname>
				<firstname_text  
				                   ident_text="true"  
						   path_text='/delivery/list_person/person/firstname' />
			</firstname>
		</list_firstname>
	</name>
</list_name>
explanation

The file test90.xml contains a list of person and their addresses.
The xml-data should be converted.
The result sholud be a list of all names.
To each name should all firstnames be listed.

file: test90.xml
<?xml version='1.0' encoding='UTF-8'?>
<delivery>
	<list_person>
		<person>
			<name>Fischer</name>
			<firstname>Hildegard</firstname>
			<list_address>
				<address>
					<residence>Frankfurt</residence>
					<street>Mainstr.</street>
					<houseno>2</houseno>
				</address>
			</list_address>
		</person>
		<person>
			<name>Fischer</name>
			<firstname>Josef</firstname>
			<list_address>
				<address>
					<residence>Frankfurt</residence>
					<street>Mainstr.</street>
					<houseno>2</houseno>
				</address>
			</list_address>
		</person>
		<person>
			<name>Bauer</name>
			<firstname>Josef</firstname>
			<list_address>
				<address>
					<residence>Frankfurt</residence>
					<street>Mainstr.</street>
					<houseno>3</houseno>
				</address>
			</list_address>
		</person>
	</list_person>
</delivery>

toxml-result on stdout
<?xml version='1.0' encoding='UTF-8'?>
<list_name>
	<name>
		<name_text>Bauer</name_text>
		<list_firstname>
			<firstname>
				<firstname_text>Josef</firstname_text>
			</firstname>
		</list_firstname>
	</name>
	<name>
		<name_text>Fischer</name_text>
		<list_firstname>
			<firstname>
				<firstname_text>Hildegard</firstname_text>
			</firstname>
			<firstname>
				<firstname_text>Josef</firstname_text>
			</firstname>
		</list_firstname>
	</name>
</list_name>