View Single Post
  #1 (permalink)  
Old June 26th, 2006, 05:09 AM
lantoli lantoli is offline
Registered User
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default change namespace leaving prefix unchanged

I would like to make an identity transformation in XSLT, but changing a prefix namespace to point to another namespace. I need to keep the same prefix as it's used internally in attributes to form QNames.

For example:

<process name="hello" xmlns:client="http://client1">
should be changed to:
<process name="hello" xmlns:client="http://client2">

so subsequent attributes can still refer to "client" prefix name.

If it can't be done in standard XSLT 2.0, I'd like to know if some XSLT engine provides some extensions to get this.

Thank you.
Reply With Quote