My Oracle Support Banner

WLST Command ImportMetadata is Removing Embedded Comments from Common XSL Artifact During Deployment (Doc ID 1675735.1)

Last updated on AUGUST 15, 2018

Applies to:

Oracle SOA Suite - Version 11.1.1.7.0 to 11.1.1.7.0 [Release 11gR1]
Information in this document applies to any platform.

Symptoms

On : 11.1.1.7.0 version, BPEL Service Engine

When using the importMetadata command from the following document to import common XSLT artifacts to the MDS:
http://www.oracle.com/technetwork/articles/soa/fonnegra-storing-sca-metadata-1715004.html#SCA-and-MDS

After the command executes successfully, the XSLT documents are missing the internal comments and processing instructions.

TEST CASE - STEPS
-----------------------

-- ngtemp4.xsl --

<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
 <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
 <mapSources>
   <source type="XSD">
     <schema location="../../bpel/BP_Generic_SchemaRepository/bpel/850_4010.xsd"/>
     <rootElement name="Transaction-850" namespace="urn:oracle:integration:b2b:2775D4B1F51D4794A10EA938ACBA743E"/>
   </source>
 </mapSources>
 <mapTargets>
   <target type="XSD">
     <schema location="../../bpel/BP_Generic_SchemaRepository/bpel/FaPO.xsd"/>
     <rootElement name="name" namespace="http://domain/path"/>
   </target>
 </mapTargets>
 <!-- GENERATED BY ORACLE XSL MAPPER 10.1.3.5.0(build 090730.0200.1754) AT [WED APR 07 14:18:15 PDT 2010]. -->
?>
<!-- Version: %version: 20 % -->
<xsl:stylesheet version="1.0"
               xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
               xmlns:ns1="urn:oracle:integration:b2b:2775D4B1F51D4794A10EA938ACBA743E"
               xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
               xmlns:ns2="http:/xmlns.oracle.com/bpel/workflow/xpath"
               xmlns:fis="http://domain"
               xmlns:xs="http://www.w3.org/2001/XMLSchema"
               xmlns:po="http://domain"
               xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
               xmlns:name="http://domain"
xmlns:fautil="http://www.oracle.com/XSL/Transform/java/com.famoussoftware.util.FaDocUtil"
               xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
               xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:ora="http://schemas.oracle.com/xpath/extension"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
               xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
               xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
               exclude-result-prefixes="xsl ns1 fautil xs po bpws ehdr hwf xsi xp20 xref ora ids orcl">
<!-- Transaction values passed in from BPEL process -->
<xsl:param name="DocId"/>
<xsl:param name="DocType"/>
<xsl:param name="DocRevision"/>
<xsl:param name="TransactionSeqNo"/>
<xsl:param name="FromMemberIdx"/>
<xsl:param name="ToMemberIdx"/>
<xsl:param name="SubDocType"/>
<xsl:param name="CorrelationId"/>
<xsl:variable name="shipFromLocationSeqVal">
<xsl:text disable-output-escaping="no">0</xsl:text>
</xsl:variable>
<xsl:template match="/">
<fis:XmlVersion>
<xsl:text disable-output-escaping="no">0</xsl:text>
</fis:XmlVersion>
</xsl:template>
</xsl:stylesheet>


-- WLST --

wls:/offline> connect('weblogic','welcome1')
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'soa_domain'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

wls:/soa_domain/serverConfig> importMetadata(application='soa-infra',server='soa_server1',fromLocation='/home/oracle/temp',docs='/ngtemp4.xsl')
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)

Executing operation: importMetadata.

Operation "importMetadata" completed. Summary of "importMetadata" operation is:
1 documents successfully transferred.
List of documents successfully transferred:

/ngtemp4.xsl

wls:/soa_domain/serverConfig>

-- JDeveloper - MDS - soa-infra -

ngtemp4.xsl

<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="urn:oracle:integration:b2b:2775D4B1F51D4794A10EA938ACBA743E" xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions" xmlns:ns2="http:/xmlns.oracle.com/bpel/workflow/xpath" xmlns:fis="http://domain" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:po="http://domain" xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath" xmlns:domain="http://domain" xmlns:fautil="http://www.oracle.com/XSL/Transform/java/com.util" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" exclude-result-prefixes="xsl ns1 fautil xs po bpws ehdr hwf xsi xp20 xref ora ids orcl">
<xsl:param name="DocId"/>
<xsl:param name="DocType"/>
<xsl:param name="DocRevision"/>
<xsl:param name="TransactionSeqNo"/>
<xsl:param name="FromMemberIdx"/>
<xsl:param name="ToMemberIdx"/>
<xsl:param name="SubDocType"/>
<xsl:param name="CorrelationId"/>
<xsl:variable name="shipFromLocationSeqVal">
<xsl:text disable-output-escaping="no">0</xsl:text>
</xsl:variable>
<xsl:template match="/">
<fis:XmlVersion>
<xsl:text disable-output-escaping="no">0</xsl:text>
</fis:XmlVersion>
</xsl:template>
</xsl:stylesheet>

  

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.