urgent hlep needed to add a namespace to elements using XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I need to add namespace to original output xml using XSLT transform. Here is the orginal xml:
<pre class=c-sharp><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Response>
<a Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5
1234567

<b Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc
45678910
</b>
</Response>
[/code]
The destination xml i need is:
<pre class=c-sharp><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Response>
<a Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"
xmlns="http://www.test.com/test
1234567

<b Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"
xmlns="http://www.test.com/test
45678910
</b>
</Response>[/code]
Can anybody help with the stylesheet? Thanks.<br/>

View the full article
 
Back
Top