This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XML to XML transformation
- From: Subramanian Subramanian <subramanian dot subramanian at integral dot com>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Fri, 2 Aug 2002 09:45:43 -0700
- Subject: [xsl] XML to XML transformation
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
I need to transform one XML to another XML. Some of the elements in the
source XML has an attribute xsi:type and the value is a java class name. In
the output xml I want to remove this attribute and change the name of the
element to something based on the java class name.
Ex:
Input -
<javaobject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="java:a.b.c"
attr1="123">
:
:
</javaobject>
Expected output -
<abc attr1="123">
:
:
</abc>
I am new to XSL and I finding it diffcult to get a hang of it. Can anyone
help me or give me some pointers for writing this XSL.
Thanks.
Subramanian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list