This seems like something that should be easy right?

Basically you do not 'strip it out' in XSLT, rather you copy everything
else through, and NOT copy that which you do not want.

But I am more of an idea rat with XSLT... So I defer to someone else
for sample code.


On 6/12/2012 9:26 PM, TexMix wrote:
>
> So being new to style sheets I don't know the best way to remove a node
> from the soap body input doc..
>
> Here is what the input document looks like now:
> <input>
> <soap-env:Envelope
> xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
> <soap-env:Body>
> *<add>*
> <TestingSoap xmlns="urn:root/subroot/path/">
> <TestingSoapInput>
> <UserId>UserID</UserId>
> <Value>ABC</Value>
> <ValueTwo/>
> <ValueThree/>
> </TestingSoapInput>
> </TestingSoap>
> *</add>*
> </soap-env:Body>
> </soap-env:Envelope>
> </input>
>
> And this is how it needs to look
> <input>
> <soap-env:Envelope
> xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
> <soap-env:Body>
> <TestingSoap xmlns="urn:root/subroot/path/">
> <TestingSoapInput>
> <UserId>UserID</UserId>
> <Value>ABC</Value>
> <ValueTwo/>
> <ValueThree/>
> </TestingSoapInput>
> </TestingSoap>
> </soap-env:Body>
> </soap-env:Envelope>
> </input>
>
> Can removing the <add> node from the input doc be done in the style
> sheet without striping the entire document? If so how can this be done?
> What are some other options of doing this? Any suggestions would be
> great! Thanks.
>
>