Some times we are in need to remove namespace from XML payload in oracle soa, SOA framework does not provide any direct XML manupulation methods to do it, But with the help of XSLT we can achieve it.
XSLT Name:
RemoveNamespace.xsl
Step to remove name space:
XSLT Name:
RemoveNamespace.xsl
Step to remove name space:
- Drag & drop a XSLT component.
- Map BPEL/ESB variable in INPUT & OUTPUT.
- No mapping required.
- Go to source of XSLT that is created.
- Pest the below code and remove other templates.
- You can't use other templates if you are removing namespace.
XSLT Code:
<xsl:template match="*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="@* | text()">
<xsl:copy/>
</xsl:template>
Hi please give an example I cannot create the file
ReplyDeletewhat is the use providing a sample xslt for namespace removal if you do not explain it?
ReplyDelete