File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes remove xml element xsl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "remove xml element xsl" Watch "remove xml element xsl" New topic

remove xml element xsl

Juan Luis Prieto

Joined: Sep 25, 2009
Posts: 15
I am trying to remove an element from an xml message and I have reached the point to remove the content of the element I want to remove, but not the entire element as I want. I have to do it by applying an stylesheet transformation by xsl.

This is my message and the element I want to remove is <user:username xmlns:user="">juanlu</user:username>

This is the xsl that I am applying to the message.

And this is the exit I have.

Do you know what is wrong with the stylesheet not for it to remove the element I want?

Juan Luis Prieto

Joined: Sep 25, 2009
Posts: 15
I have fixed it, the problem was the copy that is not in the correct position.
This is how it should be.
I agree. Here's the link:
subject: remove xml element xsl
It's not a secret anymore!