Import .xsl file

hi all
i have an .xsl file to be imported into the mapping of the importedarchive.
when i am trying to import the system raises an error saying only .jar files and .zip files can be imported.
how do i import my.xsl file
thanks

that was a good information i find it absolutely perfect answer
one more question Satish
please let me know if i have to make changes in the mapping then do i need to change the external definintions where the xsd is located ?
thanks

Similar Messages

  • Calling an XSL file in an XSL file

    Hi,
    I'm importing xsl file into xi and uisng it for mapping.
    My query is im using a function in my mapping which is actually present in another xsl file
    how can i call the other xsl file in my present xsl file which is the base file for the mapping

    i'll be a bit more specific
    i'm using
    xsl mapping
    i have 2 map files
    nested_flow.xsl is my main map file
    and substring_flow.xsl is the map file im calling
    <u>nested_floe.xsl:</u>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
      <xsl:include href="substring_flow.xsl" />
    - <xsl:template match="/">
    - <substring_node_input>
    - <InputString>
      <xsl:value-of select="ns0:nested_node_input/Person/LName" />
      </InputString>
      </substring_node_input>
    - <nested_node_output>
    - <Emp>
    - <Innitial>
      <xsl:value-of select="ns0:substring_node_output/OutputString" />
      </Innitial>
      </Emp>
      </nested_node_output>
      </xsl:template>
      </xsl:stylesheet>
    <u>substring_flow.xsl:</u>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
    - <xsl:template match="/">
    - <substring_node_output>
    - <OutputString>
      <xsl:value-of select="substring(ns0:substring_node_input/InputString,0,1)" />
      </OutputString>
      </substring_node_output>
      </xsl:template>
      </xsl:stylesheet>
    im trying to use the substring function present in the second xsl file in the master xsl
    if u can observe the first xsl (nested_flow.xsl)
    i included substring_flow.xsl using the xsl:include and and i tried to map the input to this substring function(Person/LName to InputString) and inturn oputput from substring to the output side field (Output string to Emp/Innitial)
    but when i test the mapping it throws a Transformer error.
    "Transformer configuration exception occurred when loading XSLT"
    I'm importing both the map files in a single zip file into xi. and i'm using the master xsl file(nested_flow.xsl) in the interface mapping where it is reqd to specify the mapping.
    Message was edited by: Sidharth Velagapudi
    Message was edited by: Sidharth Velagapudi

  • Problem with import tag in xsl files and include in xsd files

    Hello,
    I've been developing an application using JBoss as server. Then, i created an especific path for xsd and another path for xsl files. In both cases, i created a main file that include (xsd) or import (xsl) the other files. My problem is that i have to specify the exactly path where the imported xsl or the included xsd files are, even though they are in the same path as the main file. What i want to know is how i say that the other xsd and xsl files are in the same path that the main file that is importing them?
    here's an example of my import and include declarations:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:import href="../server/jboss/deploy/application.ear/pack.jar/xsl/transformer1.xsl"/>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              elementFormDefault="qualified">
         <xsd:include schemaLocation="../server/jboss/deploy/application.ear/pack.jar/xsd/schema1.xsd"/>
    thanks for your help

    yes, thats not the value returned of
    URL url = this.getClass().
                        getResource("/xsl//transformer.xsl");the expression i posted is an string i'm using to test.... but i think it's not incorrect, because if the files i'm trying to open are not in the path, he throws the following exception:
    java.io.FileNotFoundException: C:\cpqd\isp\tools\third-party\jboss\server\jbossISP1\deploy\cpqd-ispeng-EngEJB-3.3.0.0.ear\cpqd-ispinv-ServiceEJB.jar\xsl\isp_transformer_manufacturer.xsl
        at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:80)
        at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:89)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:323)
        at org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:192)
        at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788)
        at br.com.cpqd.oss.isp.service.adapter.FrameworkAdapter.createExternalData(FrameworkAdapter.java:131)
        at br.com.cpqd.oss.isp.service.message.ExternalDataMDBBean.onMessage(ExternalDataMDBBean.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
        at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:284)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150)
        at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
        at org.jboss.ejb.Container.invoke(Container.java:709)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:928)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1205)
        at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
        at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
        at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
        at org.jboss.mq.SpySession.run(SpySession.java:351)
        at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
        at java.lang.Thread.run(Thread.java:534)and when the files are in the path, he throws the other exception... thats why i think the problem it's not the URL....

  • Xsl file placement re import and href

    Are there any conventions on where to place xsl files when
    packaging a web app, and how to define the 'import href=' to
    correctly locate imported style sheets? Specific examples would
    be welcome, for both exploded and unexploded deployment.
    My java code is successfully locating my main stylesheet via Classloader.getSystemResourceAsStream.
    The main stylesheet contains '<import href="another.xsl">', and another.xsl is in
    the same directory as the main stylesheet. The Sax parser complains that it can't
    find another.xsl (actually, it complains
    it can't find file://c:/my/path/to/weblogic/another.xsl). I've
    tried variations on the relative href URI without success, and
    would appreciate any solutions anyone knows of.

    This xsl is being used by some utility classes, which in turn are being used by some
    EJB's.
    These utility classes and required resources (such as xsl's), have been packaged
    as jar inside an ear.
    Rajesh Mirchandani <[email protected]> wrote:
    Have you tried with an exploded webapp?
    vinay s wrote:
    hello Glen,
    I am facing a problem in locating the xsl file. Could you pls tell mehow u accessed
    that man xsl file using ClassLoader.
    1. where does yr xsl file reside ?
    2. where does the class that uses this xsl reside?
    tx a lot...
    "Glen Cordrey" <[email protected]> wrote:
    Are there any conventions on where to place xsl files when
    packaging a web app, and how to define the 'import href=' to
    correctly locate imported style sheets? Specific examples would
    be welcome, for both exploded and unexploded deployment.
    My java code is successfully locating my main stylesheet via Classloader.getSystemResourceAsStream.
    The main stylesheet contains '<import href="another.xsl">', and another.xsl
    is in
    the same directory as the main stylesheet. The Sax parser complains that
    it can't
    find another.xsl (actually, it complains
    it can't find file://c:/my/path/to/weblogic/another.xsl). I've
    tried variations on the relative href URI without success, and
    would appreciate any solutions anyone knows of.
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • How to use an .xsl file to transform input XML to re-formatted output XML?

    Hello,
    I have a .xml file from a report that I want to use a stylesheet to transform into a different .xml format.
    I am reading that I can create a .xsl file to read my input and then transform it to a new output .xml file.
    How do I load this into the Apps?
    I tried creating a template definition and loading the .xsl in as type 'XSL-TEXT' and also, I added
    <?xml-stylesheet type="text/xsl" href="Transform.xsl"?> to my xml data source. The output looked the same as the input.
    Has anyone done this before? Any suggestions would be great!
    Thanks
    -CC

    This is how I use e4x with HTTPService:
    import mx.collections.XMLListCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable] private var claimsXLC:XMLListCollection;
    private function claimsHandler(evt:ResultEvent):void{
        claimsXLC = new XMLListCollection(evt.result..claim as XMLList);
    XML data is being returned, but I use XMLList to create the XMLListCollection.
    If this post answers your question or helps, please mark it as such.

  • Unable to open xsl file in Jdev 10.1.3.4.0.4270 (XSL Map generation failed)

    Hi Guys,
    I am trying to edit an XSL file using Jdeveloper 10.1.3.4 and it gives me the error "XSL Map generation failed. Please use the source editor to correct the problems and return to the design editor".
    In the Mapper Message Log i find these lines.
    Line Number:(44) : Error: "xsl:import" XSL Element Currently not Supported
    Line Number:(68) : Error: "xsl:apply-templates" XSL Element Currently not Supported
    Line Number:(67) : Error: <xsl:template match="/"> and <xsl:template name="..."> are the only permitted <template> elements in the XSL
    Any help / pointers is very much appreciated.
    Regards,
    Vik

    Perhaps better late than never...
    This is a limitation in JDeveloper that it cannot render an XSL in design/mapper view when it contains these features of XSL. Pretty much 100% of AIA transformations fall into this category.

  • Error in interface mapping  when calling a xsl file

    Hi,
    Using XSLT I am calling another XSL file  into my main xsl file.I have added both the zip files into  a single zip file and imported in my imported archive.But when i do the interface mapping testing i get an error 'Transformer configuration exception occurred when loading XSLT xslt1.xsl'.
    What should i do?

    Dear Sidhvin,
    First test your XSLT in the editor (for example STYLUS STUDIO). In Editor run your mapping and have a look whether you are getting the required result.
    if you are  getting the required result of XSLT then use it in the scenario and after importing this activate it and then run the interface.
    hope this time you will not get any error
    Thanks
    Sandeep
    PS: if helpful Reward points

  • Process include XSL file

    when use XSLProcessor.processXSL method process a xsl file include another XSL file
    error message:
    Error while processing include XSL file (no protocol: eprice.xsl)

    in the main xsl file i write:
    <xsl:import href="eprice.xsl"/>
    to import a xsl file.
    in the java program XSLTransform.java i write:
    XSLTransform.class.getResourceAsStream("mainxslfile");
    to load the main xsl file.
    null

  • Error parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta name="generator" content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Transform</title>
    <link type="text/css" rel="stylesheet" href="css/CascadeMenu.css">
    </head>
    <body id="Bdy">
    Hello all, I've run into a perplexing problem with a new and unexptected error on a web application that resides in a JDeveloper 11g environment. I just run it from JDeveloper on my laptop. No deployement other than to the default server at run time Integratedweblogicserver. I am doing an XML transform using XSLT and it has been working fine until I tried to use the page yesterday. I get the following error. javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException: XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser). at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:417) at jsp_servlet.__transform._jspService(__transform.java:109) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: javax.xml.transform.TransformerConfigurationException: XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser). at oracle.xml.jaxp.JXSAXTransformerFactory.reportConfigException(JXSAXTransformerFactory.java:759) at oracle.xml.jaxp.JXSAXTransformerFactory.newTemplates(JXSAXTransformerFactory.java:371) at oracle.xml.jaxp.JXSAXTransformerFactory.newTransformer(JXSAXTransformerFactory.java:272) at weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209) at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(TransformSupport.java:145) at jsp_servlet.__transform._jsp__tag2(__transform.java:223) at jsp_servlet.__transform._jspService(__transform.java:102) ... 25 more Caused by: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser at oracle.xml.jaxp.JXSAXTransformerFactory.newTemplates(JXSAXTransformerFactory.java:357) ... 30 more ------------------------------------------------ I changed no code or moved any XML or XSLT file. I do see an error in the log regarding a bad URL ----------------------------------------------- XML-22108: (Error) Invalid Source - URL format is incorrect. XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser). &lt;[ServletContext@10343785[app:QSBQAR module:QSBQAR-QSBQAR-context-root path:/QSBQAR-QSBQAR-context-root spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@699744[ GET /QSBQAR-QSBQAR-context-root/Transform.jsp?reqtype=1 HTTP/1.1 Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Accept-Language: en-us User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; . ------------------------------ Here is the XML ------------------------------ <?xml version="1.0" encoding="windows-1252" standalone="no"?>
    ACME Bird Seed Co. Capture the Road Runner using a boulder, rope and bird seed. Quinn Brian 00 00 00 00 00 00 00 00 00 11 08 08 08 08 00 43 43 Hours have been approved. APPROVED Smart Jean 00 00 00 00 00 00 00 00 00 Hours approved. APPROVED --------------------------------------------------------------------------------------- Here is the XSL --------------------------------------------------------------------------------------- <?xml version="1.0" encoding="windows-1252"?>
    <!-- Root template -->
    <h2>Project Hours Worked</h2>
    ----------------------------------------------------------------------------------------- Here is the JSP with the transform ----------------------------------------------------------------------------------------
    <table>
    <tr>
    <td>Week Ending Date:--</td>
    </tr>
    <tr>
    <td></td>
    </tr>
    <tr>
    <th>Client</th>
    <td></td>
    <th>Project</th>
    <td></td>
    </tr>
    <tr>
    <td></td>
    </tr>
    <tr>
    <td></td>
    </tr>
    <tr>
    <th>Last Name</th>
    <th>First Name</th>
    <th>Task</th>
    <th>---</th>
    <th>Sun</th>
    <th>Mon</th>
    <th>Tue</th>
    <th>Wed</th>
    <th>Thu</th>
    <th>Fri</th>
    <th>Sat</th>
    <th>---</th>
    <th>Ttl</th>
    </tr>
    <tr>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td>---</td>
    <td>---</td>
    <td></td>
    <td>---</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>---</td>
    <td></td>
    </tr>
    <tr>
    <td>Total Hours: </td>
    <td></td>
    <td></td>
    </tr>
    <%@ page contentType="text/html;charset=windows-1252"%><%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %></table>
    <script type="text/javascript" src="scripts/CascadeMenu.js">
    </script>
    <% int bad = 1; %>
    <div id="menuBar" class="menuBar">
    <div id="Bar1" class="Bar">Home</div>
    <div id="Bar3" class="Bar">Accounting</div>
    <div id="Bar4" class="Bar">Help</div>
    </div>
    <div style="background:#84ffff; color:Aqua; "><br>
    <br>
    <p style="color:Orange; font-size:x-large; font-style:italic; font-weight:bold;
    font-family:Arial, Helvetica, sans-serif; "><img src="images/logoqsq.jpg" style="border:1" height="120" width="120" alt="Q Squared">
    </p>
    </div>
    <div>
    <p style="color:Black; font-size:x-large; font-style:italic; font-weight:bold; font-family:Arial, Helvetica, sans-serif;"><img src="images/dilbert.gif" alt="Dilbert" height="100" width="100">
    ? ? Welcome to Q Squared-Brian Quinn Consulting - Manager Time Approval</p>
    </div>
    <div>
    <table width="100%" class="table1">
    <tr>
    <td style="width:15%; border-width:medium; background-color:silver ">
    <h3>Contractor Resources</h3>
    <ul style="list-style-type:circle; ">
    <li>Time Entry</li>
    <li>Profile</li>
    </ul>
    <h3>Manager Resources</h

    LOL - I didn't think about the forum message area having trouble displaying my XML XSLT problem
    It seemed to mix the code with the site XML.
    Oh brother
    The deal is this.
    The XML XSLT transform was working and now it is not and I think it has something to do with
    the HTTP links for either the Oracle core and/or XML TAGLIBs. Either that or the W3.org has
    outdated XSLT http links.
    Anyone know if changes have been made to any of these taglib links?
    This in the JSP
    <!--
    <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <c:import url="HoursWorked.xml" var="xmlHoursWorked" charEncoding="windows-1252"/>
    <c:import url="./HoursWorked3.xsl" var="xslt" charEncoding="windows-1252"/>
    <x:transform xml="${xmlHoursWorked}" xslt="${xslt}" />
    -->
    This in the XSL
    <!--
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    -->
    And the other JSP having the same problem.
    <!--
    <%@ page contentType="text/html;charset=windows-1252"
    import="java.util.List, qsbqar.XMLHandler, org.w3c.dom.NodeList,
    javax.xml.transform.*, javax.xml.transform.stream.*,
    org.w3c.dom.Node, oracle.xml.parser.v2.*, java.io.File,
    java.io.FileReader " %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
    <xsl:param name="employeeID" value="2"/>
    <%session.setAttribute("employee_ID", request.getParameter("consultantID")); %>
    <c:import url="HoursWorked.xml" var="xmlHoursWorked" charEncoding="windows-1252"/>
    <c:import url="./HoursWorked4.xsl" var="xslt" charEncoding="windows-1252"/>
    <x:transform xml="${xmlHoursWorked}" xslt="${xslt}">
    <x:param name="employeeID" value="${sessionScope.employee_ID }"/>
    </x:transform>
    -->
    Edited by: B of Carbon on Dec 19, 2010 12:25 AM

  • Issue in generating "XSL" file from excel template

    Hi,
    I am trying to genreate "XSL" file using ExcelProcessor class using below code snippet.
    FileInputStream fIs = new FileInputStream("D:\\Test.XLS"); //input excel template
    FileOutputStream fOs = new FileOutputStream("D:\\Test_OUT.XSL"); // output xsl
    ExcelProcessor excelProcessor = new ExcelProcessor();
    excelProcessor.setTemplate(fIs);
    excelProcessor.setOutput(fOs);
    excelProcessor.process();
    I am getting the below exception.
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
         at oracle.xdo.template.excel.object.SheetObject.addComponent(SheetObject.java:155)
         at oracle.xdo.template.excel.object.BookManager.collectAllNameObjects(BookManager.java:249)
         at oracle.xdo.template.excel.object.BookManager.process(BookManager.java:147)
         at oracle.xdo.template.excel.ExcelController.parseExcelTemplate(ExcelController.java:304)
         at oracle.xdo.template.excel.ExcelController.generateXSL(ExcelController.java:259)
         at oracle.xdo.template.excel.ExcelController.process(ExcelController.java:237)
         at oracle.xdo.template.ExcelProcessor.process(ExcelProcessor.java:244)
         at com.ofs.reveleus.rrs.services.GenerateRReportExcel.main(GenerateRReportExcel.java:159)
    Can someone please help me out with this.?
    Thanks,

    .xsb is not allowed to be uploaded in oracle EBS R12
    I registered the template definition of type 'XSL-FO',It allows me to upload only .xsl file.
    The import command for .xsl file mentioned does not work in Oracle apps R12,Program still completes with warning.
    Please advice on this.
    Thanks in advance
    Shwetha

  • Include XSL file while using API

    Hello,
    I want to use the include tag to include a XSL Stylesheet to my RTF while using the API
    If I run the report locally I use:
    <?import:file:///C:/temp/htmlmarkup.xsl?>
    If I run the report on APPS I use:
    <?import:xdo://INV.HTMLMARKUP.de.DE?>
    But what do I refer if I am in the context of the APIs? My XSL file is in the java-resource-tree available under:
    com.my.application.bi.resource.style.htmlmarkup.xsl
    But I allways get XML-22002: (Fatal Error) Error while processing include XSL file
    Any hints for me?
    Best Regards
    Alexander

    No, you cannot do this. Using the Acrobat SDK a programmer can combine PDF files using OLE.

  • EText Outbound using API - How do I specify the XSL file?

    I apologize in advance if this is documented somewhere and I am being lazy. But I cannot find the the documentation and would appreciate someone pointing me in the right direction. Or by helping with this code.
    Compiles but dies in execution
    package xmlp;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.DataOutputStream;
    import oracle.apps.xdo.XDORuntimeException;
    import oracle.apps.xdo.template.EFTGeneratorProcessor;
    public class etext_out_sample {
    public etext_out_sample() {
    public static void main(String[] args) {
    try
    DataOutputStream myout = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(new File("c:\\temp\\xmltest\\ach.txt"))));
    EFTGeneratorProcessor processor = new EFTGeneratorProcessor();
    processor.loadXML("c:\\temp\\xmltest\\ach.xml");
    processor.loadXSL("c:\\temp\\xmltest\\ach.rtf");
    processor.process(myout);
    myout.writeChars(myout.toString());
    myout.flush();
    myout.close();
    FileInputStream fiS = new FileInputStream("c:\\temp\\xmltest\\ach.rtf");
    EFTProcessor etfP = new EFTProcessor(fiS);
    etfP.setOutput("c:\\temp\\xmltest\\ach.xsl");
    etfP.process();
    EFTProcessor processor = new EFTProcessor();
    processor.setData(xmlInput);
    processor.setTemplate(template);
    processor.setXSL(xslInput);
    processor.setDebugMode(debug); processor.setSequence(sequenceName, sequenceValue);
    catch (FileNotFoundException ex)
    ex.printStackTrace();
    catch (XDORuntimeException ex)
    ex.printStackTrace();
    catch (IOException ex)
    ex.printStackTrace();
    ---------EOF---------------------

    You should use EFTProcessor.
    EFTProcessor processor = new EFTProcessor();
    processor.setData(xmlInput);
    processor.setTemplate(template);
    processor.setXSL(xslPath); // this is a path to a temp file required by EFT
    // processor to save a temporary xsl file
    processor.setOutput(filePath); // specify an output file name
    processor.process();
    Thanks,
    Shinji

  • Error while importing PAR file from local system.

    Hi Experts,
    While importing PAR file into my NWDS, I am encountered by some strange error.
    Please refer below screenshot for your reference.
    After clicking on "OK" button of the above error popup, another popup emerge with different error, please find below the screenshot for this error.
    Please let me know the reason and resolution of this error. It will be very helpful for me.
    Thanks in advance.
    Thanks and Regards,
    sarvesh Agarwal

    Hi ,
    Are u trying to import with .bak extension ? If so please rename the file and remove .bak extension and try.
    x.par is enough to import not x.par.bak.
    Thanks,

  • How to Import XML file into SAP B1

    Dear All,
    I have a scenario like,
    I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
    Thanks,
    Thanga Raj K

    Hy folks,
    I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
    There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
    However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
    So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or  it´s really necessary to write a code specifically to do that?
    Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
    Could you please help me with this subject!
    Thanks a lot,
    Denis

  • How to include preset in RTF import option while importing RTF files?

    Dear all,
    I created a script which will place text from rtf files present in a folder to an active document on different page based on match. I am using a preset name "myRTF" which i will use when i import rtf files without script.
    Is there a way to include this preset in script?
    I have checked many places....... but did not found.
    #target Indesign
    var myDoc = app.documents.item(0);
    var sourceFolder = Folder("/Users/admin4/Desktop/ec_txt");
    myFiles = sourceFolder.getFiles("*.rtf");
    var myFrame1 = myDoc.pageItems.itemByID(111076);  // switerland
    var myFrame2 = myDoc.pageItems.itemByID(111114);  // eurozone
    var myFrame3 = myDoc.pageItems.itemByID(111146);  // germany
    for (var i=0; i < myFiles.length; i++)
        switch (myFiles[i].name.slice (6, myFiles[i].name.lastIndexOf("_")))
            case "Switzerland_en":
            myFrame1.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
            break;
            case "Eurozone_en":
            myFrame2.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
            break;
            case "Germany_en":
            myFrame3.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
            break;

    Hi Dave, Peter,
    thanks for your reply. In that case i will check WordRTFImportPreference but not sure if customize style import can be done for paragraph style sheets.
    for example: word has "normal" and "head1" style but i want to map to indesign Body_light and H1 styles respectively.
    Virender

Maybe you are looking for