This discussion is archived
0 Replies Latest reply: May 14, 2013 8:29 AM by 11207106008 RSS

Overwrite Target mapping in custom XSL template

11207106008 Newbie
Currently Being Moderated
Hi Guys,

we are trying to override the element mapped in the IMPL.xsl file to NULL in CUSTOM.xsl file using call template. But we are getting the target mapped twice instead of overriding. kindly help.

IMPL.xsl_
---------------------------------------------------------------------------------------------------------------------------------------------------------
<db:LONG_DESCRIPTION xml:id="id_102">
<xsl:value-of select="corecomEBO:RevisedItem/corecomEBO:Description" xml:id="id_103"/>
</db:LONG_DESCRIPTION>

<xsl:call-template name="LONG_DESCRIPTION_Custom"/>
----------------------------------------------------------------------------------------------------------------------------------------------------------
Custom.xsl_
----------------------------------------------------------------------------------------------------------------------------------------------------------
<xsl:template name="LONG_DESCRIPTION_Custom">
<db:LONG_DESCRIPTION xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/INV_EBI_CHANGE_ORDER_PUB/PROCESS_CHANGE_ORDER_LIST/" xml:id="id_102" >
<xsl:value-of select="''"/>
</db:LONG_DESCRIPTION>
</xsl:template>
---------------------------------------------------------------------------------------------------------------------------------------------------------------
OUTPUT_
---------------------------------------------------------------------------------------------------------------------------------------------------------------
<db:LONG_DESCRIPTION xml:id="id_102">XXX</db:LONG_DESCRIPTION>
<db:LONG_DESCRIPTION xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/INV_EBI_CHANGE_ORDER_PUB/PROCESS_CHANGE_ORDER_LIST/" xml:id="id_102" />
----------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks in advance.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points