[xsl] Adding prefix to elements that belong to certain namespace

Subject: [xsl] Adding prefix to elements that belong to certain namespace
From: Venkat Gyambavantha <vgyambav@xxxxxxxxx>
Date: Tue, 23 Sep 2003 15:08:11 -0700
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


Current Thread