example regrouping: test91 converting elements to attributes

basic-control-file: cmp91.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: toxml91.xml
<?xml version="1.0" encoding="UTF-8"?>
<list_person>
	<person ident_att_name     ="true"  
	        path_att_name     ='/delivery/list_person/person/name'
	        ident_att_firstname="true"  
		path_att_firstname='/delivery/list_person/person/firstname' >
		<list_address>
			<address ident_att_residence="true"       
			         path_att_residence='/delivery/list_person/person/list_address/address/residence'
			         ident_att_street   ="true"       
				 path_att_street   ='/delivery/list_person/person/list_address/address/street'
			         ident_att_houseno  ="true"       
				 path_att_houseno  ='/delivery/list_person/person/list_address/address/houseno'
			 />
		</list_address>
	</person>
</list_person>
explanation

The elements should be converted into attributes.

file: test91.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_person>
	<person firstname='Hildegard' name='Fischer'>
		<list_address>
			<address houseno='2' residence='Frankfurt' street='Mainstr.'>
			</address>
		</list_address>
	</person>
	<person firstname='Josef' name='Bauer'>
		<list_address>
			<address houseno='3' residence='Frankfurt' street='Mainstr.'>
			</address>
		</list_address>
	</person>
	<person firstname='Josef' name='Fischer'>
		<list_address>
			<address houseno='2' residence='Frankfurt' street='Mainstr.'>
			</address>
		</list_address>
	</person>
</list_person>