PHP: Replace specific XML nodes (via XSL?)?

  • Thread starter Thread starter dvratio
  • Start date Start date
D

dvratio

Guest
Hi,
can someone help me with this:
I have an XML document which contains, among various other stuff, tags in the form of <x p1='a' p2='b'>BLABLA</x>. I want to transform all <x> tags into <y> tags with <y p3='a'>...</y> and without the original p2. The remaining document should stay unchanged.
I am still new to the whole XSLT stuff and only beginning to understand it, can someone help me with this?
 
Back
Top