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(_at_)yahoo(_dot_)com would help as
I am on digest. Thanks in advance.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list