• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

remove xml element xsl

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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="http://www.bt.com/ssc-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?

Thanks.
 
Juan Luis Prieto
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have fixed it, the problem was the copy that is not in the correct position.
This is how it should be.
 
reply
    Bookmark Topic Watch Topic
  • New Topic