Saturday, March 28, 2015

XSLT Transformation file Design View not opening in Jdeveloper

Problem :
                 Design View XSLT transformation file(.xsl) not showing/opening.

Cause :
              Probably,It happens when you export Project from em console and import it in Jdeveloper.
               which removes oracle-xsl-mapper tag which contains mapSources and mapTargets.

Solution :
             Try to add manually  <?oracle-xsl-mapper>  tag after xml start tag and above stylshhet tag with                                   corresponding mapSources and mapTargets.

Sample Oracle-xsl-mapper :  which generates in xsl file when you create first time in jdev.

<?oracle-xsl-mapper
   <mapSources>
    <source type="WSDL">
      <schema location="../sourceWsdlName.wsdl"/>
      <rootElement name="sourceRootElement" namespace="sourceWsdlNamespace"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="targetWsdlLocation"/>
      <rootElement name="targetRootElement" namespace="targetNamespace/"/>
    </target>
  </mapTargets>
 ?>
               

Add the above code to your xsl file above stylesheet tag and do changes accordingly to your source and target as mentioned in Bold.

Please refer below screens shots  :




2 comments:

  1. Hi Kashinath,

    I tried the same by exporting code into JDeveloper and added the xsl-mapper header but designer mode didn't came. Is there anyother workaround for this issue.

    Regards,
    Venkat

    ReplyDelete