[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Mapping Elements into New Namespaces

Subject: Mapping Elements into New Namespaces
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Fri, 31 Jan 2003 02:04:24 -0800 (PST)
mapping elements into new namespaces
Greatly simplified, I have source XML that looks like this

File: Source.xml
================
<?xml version="1.0"?>
<Root xmlns="http://www.aaa.com">
 <PartAB>
  <A>1</A>
  <B>2</B>
 </PartAB>
 <PartCD>
  <C>3</C>
  <D>4</D>
 </PartCD>   
</Root>

And I need to transform it into this output format:

File: Target.xml
================
<?xml version="1.0"?>
<Output>
 <Parts  xmlns="http://www.bbb.com">
  <Part1>
   <A>1</A>
   <B>2</B>
  </Part1>
  <Part2>
   <v:Details xmlns="http://www.ccc.com" xmlns:v="http://www.bbb.com">
    <C>3</C>
    <D>4</D>   
   </v:Details>
  </Part2>
 </Parts>
</Output>

I am having trouble transforming <C> and <D> because of the changed
default namespace on <Details>. Can someone suggest how to accomplish
this? I do not have control over the structure of the elements and 
namespaces in Target.xml. Copy to dandiebolt@xxxxxxxxx would help as 
I am on digest. Thanks in advance. 



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.