i am looking forwar for an template that removes anode from xml depending upon the value of a chid node,basically i am having an xml like:
<EventInfo>
<AssignmentEvent>
<CreateDateTime>2015-06-02T00:00:00+02:00</CreateDateTime>
</AssignmentEvent>
<EstimateEvent>
<CreateDateTime>2015-06-02T07:38:28.0000000Z</CreateDateTime>
<CommitDateTime>2015-06-04T14:29:38.0000000Z</CommitDateTime>
<UploadDateTime>2015-06-04T14:29:39.7651796Z</UploadDateTime>
</EstimateEvent>
<OtherEvent>
<OtherEventType>CalculatedDateTime</OtherEventType>
<OtherEventDateTime>2015-06-04T14:29:12.0000000Z</OtherEventDateTime>
</OtherEvent>
<OtherEvent>
<OtherEventType>RateDate</OtherEventType>
<OtherEventDateTime>2015-06-01T00:00:00.0000000Z</OtherEventDateTime>
</OtherEvent>
<OtherEvent>
<OtherEventType>OriginalCommitDateTime</OtherEventType>
<OtherEventDateTime>2015-06-02T07:42:16.000Z</OtherEventDateTime>
</OtherEvent>
</EventInfo>
i want an xslt template which removes the other event node along with child nodes in which other event type value is OriginalCommitDateTime.
resultant xml would be like
<EventInfo>
<AssignmentEvent>
<CreateDateTime>2015-06-02T00:00:00+02:00</CreateDateTime>
</AssignmentEvent>
<EstimateEvent>
<CreateDateTime>2015-06-02T07:38:28.0000000Z</CreateDateTime>
<CommitDateTime>2015-06-04T14:29:38.0000000Z</CommitDateTime>
<UploadDateTime>2015-06-04T14:29:39.7651796Z</UploadDateTime>
</EstimateEvent>
<OtherEvent>
<OtherEventType>CalculatedDateTime</OtherEventType>
<OtherEventDateTime>2015-06-04T14:29:12.0000000Z</OtherEventDateTime>
</OtherEvent>
<OtherEvent>
<OtherEventType>RateDate</OtherEventType>
<OtherEventDateTime>2015-06-01T00:00:00.0000000Z</OtherEventDateTime>
</OtherEvent>
</EventInfo>
i am new to xslt any help would be highly appreciated.
thanks in advance.