Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SOASuite 11g: XSL Copy nodes without xmlns

2793934Apr 19 2016 — edited Apr 20 2016

Hi All,

I am using SOASuite 11g and jdeveloper 11.1.1.0.

I have a specific problem. I have to transform an XML structure to other, where the  XSDs for source and target are the, different only the namespace definition. I am doing simple copy from source to target.

The problem is, The copied "main" node contains the original xmlns attribute and all elements are prefixed with namespace prefix of the source xsd.

I don’t want to copy the source namespace information, Instead the namespace of the target xsd should be used in the xml output.

I tried using xslt 2.0 attribute copy-namespaces="no", but the jdeveloper xsl editor errors "attribute copy-namespaces not defined on element xsl:copy-of"

can anyone let me know how to use  xslt 2.0 jdeveloper 11.1.1.0., soasuite 11g? is there another solution to solve my xsl issue?


xsl code is below

<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="2.0"

                xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"

xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"

xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"

xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"

xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"

                xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:ora="http://schemas.oracle.com/xpath/extension"

xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"

xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"

                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"

xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"

xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"

xmlns:med="http://schemas.oracle.com/mediator/xpath"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"

                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"

xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

                xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"

xmlns:tns="http://schemas.abc.com/abc/v2/"

xmlns:ns0="http://schemas.abc.com/abc/tc/"

xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"

                exclude-result-prefixes="xsi xsl tm soap12 soapenc soap mime wsdl xsd http tns ns0 aia bpws xp20 bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref ldap">

  <xsl:template match="/">

       <xsl:copy-of select="/tns:SearchParts" copy-namespaces="no"/>

  </xsl:template>

</xsl:stylesheet>

Thanks

This post has been answered by Krishna Hanumantharao on Apr 20 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2016
Added on Apr 19 2016
4 comments
2,352 views