Hello Micheal,,,,
Thanks for your reply.
following is the classes used for transformation----
class com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl
class com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl
--------------------------------------------------------------------
Now i have modified the XSL as below:
Code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:source="oldNameSpace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
<xsl:output method="xml" encoding="iso-8859-1" indent="yes" />
<xsl:template match="source:*">
<xsl:element name="{local-name()}" namespace="newNameSPace">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy copy-namespaces="no">
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
It gives me new namespace for the "impl:requestData"
replaced nameSpace...and no prefix on the "xmlString" element ....but i ended into different problem....
Now I also need to put the prefix on <xmlString> element but not on the children of <xmlString> ......
So finally i need an output xml like this....
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="oldNameSpace" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soapenv:Body>
<impl:requestData xmlns:impl="newNameSPace">
<impl:xmlString xmlns:impl="oldNameSpace" ChangeDate="2008-12-18T14:47:11.773+01:00" IdentificationNumber="WDDKJ5GBXAF000229" OrderNumber="08 295 70821" ProductionNumber="1700158">
<ServiceTool ExecutionTime="2008-12-18T14:47:11.773+01:00" UserID="kris" Version="1.1.1"/>
</impl:xmlString>
</impl:requestData>
</soapenv:Body>
</soapenv:Envelope>
it would be great if you can help in this...