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]

Move elements to an upper level


Hi all,

Source file:
<CIM_ActiveConnection SUPERCLASS="CIM_SAPSAPDependency">
	<IsUnidirectional TYPE="boolean"/>
	<OtherTrafficDescription TYPE="string"/>
	<TrafficType TYPE="uint16">
	
<TrafficTypeValueMap><ValueMap>0</ValueMap><Value>Unknown</Value></Traff
icTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>1</ValueMap><Value>Other</Value></Traffic
TypeValueMap>
	
<TrafficTypeValueMap><ValueMap>2</ValueMap><Value>Unicast</Value></Traff
icTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>3</ValueMap><Value>Broadcast</Value></Tra
fficTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>4</ValueMap><Value>Multicast</Value></Tra
fficTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>5</ValueMap><Value>Anycast</Value></Traff
icTypeValueMap>		
	</TrafficType>
</CIM_ActiveConnection>

Destination file:
<CIM_ActiveConnection SUPERCLASS="CIM_SAPSAPDependency">
	<IsUnidirectional TYPE="boolean"/>
	<OtherTrafficDescription TYPE="string"/>
	<TrafficType TYPE="uint16"></TrafficType>
	
<TrafficTypeValueMap><ValueMap>0</ValueMap><Value>Unknown</Value></Traff
icTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>1</ValueMap><Value>Other</Value></Traffic
TypeValueMap>
	
<TrafficTypeValueMap><ValueMap>2</ValueMap><Value>Unicast</Value></Traff
icTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>3</ValueMap><Value>Broadcast</Value></Tra
fficTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>4</ValueMap><Value>Multicast</Value></Tra
fficTypeValueMap>
	
<TrafficTypeValueMap><ValueMap>5</ValueMap><Value>Anycast</Value></Traff
icTypeValueMap>		
</CIM_ActiveConnection>

In fact, I want to keep the TrafficType element which becomes empty, and
move all the its TrafficTypeValueMap elements at the same level as
TrafficType.
Is it possible to do that ?

--------------------------------------------------
Olivier Borca
SoftPlumbers Engineer (Geneva)
Tel: (+4122) 8491003
E-Mail: olivier.borca@softplumbers.com
--------------------------------------------------



 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]