This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Move elements to an upper level
- To: "Xsl-List (E-mail)" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Move elements to an upper level
- From: "Borca, Olivier" <Olivier dot Borca at softplumbers dot com>
- Date: Tue, 13 Mar 2001 09:55:20 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
- Thread-Index: AcCrm1UCZs8+EAqeQq26GZOGBH54Ag==
- Thread-Topic: 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