xsl-list
[Top] [All Lists]

Adding prefix to elements that belong to certain namespace

2003-09-23 15:08:11
Hi:

Is there a way to transform the following xml

<envelope xmlns="http://somenamespace.com";>
   <Header>
      <from>me</from>
      <to>you</to>
 </Header>
 <body>
    <command xmlns="http://somenamespace.com";>
      <type>ADD</type>
  </command>
</body>
</envelope>

to 

<pfx:envelope xmlns:pfx="http://somenamespace.com";>
   <Header>
      <from>me</from>
      <to>you</to>
 </Header>
 <body>
    <pfx:command>
      <type>ADD</type>
  </command>
</body>
</envelope>

Thanks




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list