XSL issue

Hi All,
Below is part of my xsl in which i pass 6 parameters. Each parameter is an array. I want to use the for-each with the paramter as i did below but it fails when i try to test. Basically, i want to loop thru my paramters and store their data to the target. Is there a way to achieve this ?
<xsl:param name="EMP"/>
<xsl:param name="STR"/>
<xsl:param name="ACAD"/>
<xsl:param name="SDATE"/>
<xsl:param name="EDATE"/>
<xsl:param name="STAT"/>
<xsl:template match="/">
<ns2:Student>
<ns2:StudentProgramDataCollection>
*<xsl:for-each select="$EMP">*
<ns2:StudentProgramData>
<ns2:Emplid>
<xsl:value-of select="$EMP"/>
</ns2:Emplid>
<ns2:StartDate>
<xsl:value-of select="$SDATE"/>
</ns2:StartDate>
<ns2:EndDate>
<xsl:value-of select="$EDATE"/>
</ns2:EndDate>
<ns2:Strm>
<xsl:value-of select="$STR"/>
</ns2:Strm>
<ns2:ProgStatus>
<xsl:value-of select="$STAT"/>
</ns2:ProgStatus>
<ns2:AcademicPlan>
<xsl:value-of select="$ACAD"/>
</ns2:AcademicPlan>
</ns2:StudentProgramData>
</xsl:for-each>

Hi Krishil,
General transformation source code will appear like below.
<from expression="ora:processXSLT('transHeaderToPersist_Split.xsl',bpws:getVariableData('ProcessRemittanceAdviceHeader','payload'))"/>
Now create an element of your paramsXSD type and add that variable in transformation as below
<from expression="ora:processXSLT('transHeaderToPersist_Split.xsl',bpws:getVariableData('ProcessRemittanceAdviceHeader','payload'),bpws:getVariableData('paramsVar'))"/>
Now define elements in transformation.
<xsl:param name="beginIndex" />
<xsl:param name="endIndex" />
<xsl:param name="CheckNumber" />
Now you can use these variables in for-each .
Regards
PavanKumar.M

Similar Messages

  • WAR file issue

              Hi! People,
              Is anybody able to use paths from
              web application root
              to access images, etc. from JSP pages???
              for eg:-
              regardless of where a particular jsp is in the web application,
              it should be able to resolve something like this:
              <IMG SRC="/imagefolder/image4.gif">
              Weblogic should be able to resolve it from WEB-APP document
              root, right?
              For me Weblogic is searching for the images in document root of WL server, and not in root of web application.
              Please help me as soon as possible. Please let me know how
              I can fix this.
              Thanks in advance.
              

    First, it is a coincidence that your name is Ejb. I have a cousin named Ejb
              too. You might know him; perhaps you received your deployment at the same
              school. ;-)
              I hadn't thought of the XSL issue. Good point. Think think think. Is
              there no way that the context path could be passed as part of the incoming
              document? Aye carumba.
              Cameron Purdy
              http://www.tangosol.com
              "Ejb Developer" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Thanks Cameron!
              >
              > Here is why I wanted to use absolute paths:
              >
              > Reason 1:
              > ---------
              > We have a bunch of XSL files which contain references
              > to images. These XSL files will be applied to XML that is
              > generated at runtime as part of request to a JSP.
              > Since many MANY jsps use the same XSL files,
              > relative references from XSL files don't work with
              > the jsps being in different levels of WAR file hierarchy.
              >
              > Reason 2:
              > ---------
              > We have a set of jsps with links
              > which point to other pages.
              > Now these need to be included from different jsps.
              > They only work when we have absolute paths available.
              >
              > I have made a set of tags to make absolute paths available
              > to all references within jsps
              > (basically using request.getContextPath()),
              > but it is proving slightly difficult to pass this
              > information for XSLT processing.
              >
              > Thanks,
              > Ejb
              >
              >
              > "Cameron Purdy" <[email protected]> wrote:
              > >The browser is what is searching the root of the server. Remember, the
              > >following is sent to the browser:
              > >
              > >> <IMG SRC="/imagefolder/image4.gif">
              > >
              > >The browser then figures out the "real" path, and since you led with a
              > >the browser goes to the root of the host.
              > >
              > >You either have to make a tag that provides the image directory
              (including
              > >the context path) or you have to use relative paths to load images. Be
              > >careful with relative paths if your URLs have any additional '/' in them
              > >(e.g. some .jsps are in a subdirectory of your war, or you use a '/'
              after
              > >your servlet name to pass more information as part of the URL).
              > >
              > >--
              > >
              > >Cameron Purdy
              > >http://www.tangosol.com
              > >
              > >
              > >"Ejb Developer" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> Hi! People,
              > >>
              > >> Is anybody able to use paths from
              > >> web application root
              > >> to access images, etc. from JSP pages???
              > >>
              > >> for eg:-
              > >>
              > >> regardless of where a particular jsp is in the web application,
              > >> it should be able to resolve something like this:
              > >>
              > >> <IMG SRC="/imagefolder/image4.gif">
              > >>
              > >> Weblogic should be able to resolve it from WEB-APP document
              > >> root, right?
              > >> For me Weblogic is searching for the images in document root of WL
              server,
              > >and not in root of web application.
              > >>
              > >> Please help me as soon as possible. Please let me know how
              > >> I can fix this.
              > >>
              > >> Thanks in advance.
              > >
              > >
              >
              

  • XSL - Bpel produces different (incorrect) results ?

    I have a transformation that sets an address based on on of three supplied addresses in the source xml. It's basically a nested choice:
    choice
    when address3
    output address 3
    else
    choice
    when address 2
    output address 2
    else
    output address 1 (always supplied)
    [edit]
    Not an XSL issue. Turns out to be a namespace issue.
    Message was edited by:
    blackrob1966

    You haven't answered my questions:
    Is this a reproducible effect? What about other queries?However, if this
    I don't have complete access to the system to be able to pull out structures etc.really is the case, I don't see what the point of this thread is. It's not as though you're actually in a position to resolve this problem. This is a purely academic exercise on our part.
    Cheers, APC

  • Another �: (space) issue

    I've read some other topics here with interest, and have tried out some of the suggestions but my problem is still there. Please help, it's important and I'm pretty much stuck now.
    What I'm trying to do is to pad out a string with spaces, to space out the data under headed columns. For example, I've got a string that is actually made up of three fields, though the field lengths vary. I want to limit the first column to 15 characters then start the second column from there, and possible start columnd three at about character 40. If I put out an unformatted string then the fields are concatenated and don't fall under the column headings.
    We have a bit of code that works in terms of calculating how many spaces are required and inserting them into the string. If the first field was to be seven characters long then it adds eight spaces, to make up the 15 character in column one. It runs fine as straight html but when it's built into the application then multuiple " " space characters�are displayed, literally, as " ", instead of actual spaces. I've tried everything to get around it. The code works fine with the likes of an underscore character ("_") instead of a space, but I'm having no joy with spaces, which is what we need.
    It's been suggested that we should be using tables but it's too late for that. I didn't create these lists but am trying to format them now. Using underscore characters is too ugly and I can't see our users liking it even if I could get it past my bosses.
    Many thanks for any suggestions. I live in hope...

    What I meant was that when we viewed the html generated it appeared with the amount of spaces to "pad out" the columns, but that when we compiled the whole application and ran it the spaces would appear as literal nbsp's. Obviously something in the environment was translating them.
    We had a similar issue with a previous application that used xsl, unlike this current application which is jsp-based. In it we had problems displaying certain characters until we changed the encoding reference at the top of the xsl. The version that worked for us was - <?xml version="1.0" encoding="iso-8859-1" ?>
    As I said, this application uses jsp so it's different, but we're still hoping that there may be a solution somewhere. Perhaps the encoding in xsl issue may be similar and there may be a way that we can apply something similar to this application. We're trying to get our "in-house internet expert" to help. If he doesn't know then nobody else in here will, but I'm still hoping...
    I don't really like padding out these strings with spaces, but I'm just trying to work with what's been thrown my way. I didn't write it and it's too late to change now.
    Thanks again for any assistance. ideas, or whatever.

  • Intersection Validation Report

    Hi everybody
    I'm trying to create Intersection Validation Report, but an error occurs (the usual XML/XSL issue seen in other threads).
    I think in my case this error is due to MS Office absence (because on another server with the same HFM and FDM applications and Office installation it works perfectly).
    My question: is it possible to generate Intersection Validation report without Excel? Through other templates for example...?
    Thanks in advance
    Francesco

    Which version of FDM are you using. In the current versions inersedtion validation reports are not created with Excel but in XML. In earlier versions this was an option in the integration settings so you could specify to use XML Intersection validation reports instead of those generated using the Excel engine.

  • Migrating to xdk10 from xdk9

    I don't know if this question had been answered before or not but we are migrating from xdk9 to xdk10 and encountering alot of xsl issues.
    i am using Altova xmlspy 2006 IDE to write xsl and it is validated and all but when I use the same xsl in the application server using the new xdk10. It's giving me a following exception.
    Please help!!!!
    java.lang.NullPointerException
    at oracle.xml.parser.v2.XSLExprValue.compareGen(XSLExprValue.java:746)
    at oracle.xml.parser.v2.ComparisonExpr.evaluate(XSLExpr.java:1467)
    at oracle.xml.parser.v2.XSLCondition.testCondition(XSLCondition.java:185)
    at oracle.xml.parser.v2.XSLCondition.processAction(XSLCondition.java:165)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
    at oracle.xml.parser.v2.XSLCallTemplate.processAction(XSLCallTemplate.java:127)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
    at oracle.xml.parser.v2.XSLCallTemplate.processAction(XSLCallTemplate.java:127)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLCondition.processAction(XSLCondition.java:161)
    at oracle.xml.parser.v2.XSLCondition.processAction(XSLCondition.java:152)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:403)
    at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
    at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:507)
    at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:484)
    at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:256)
    at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:146)
    at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:199)

    Here is a workarround:
    My XSL in same place where doing this:
    <xsl:apply-templates select="objeto[contains($criterio, concat(',',nombre,','))[b] = false and (contains($cliente, implementacion) or not(implementacion))]"/>
    And I've to change it to:
    <xsl:apply-templates select="objeto[not(contains($criterio, concat(',',nombre,','))) and (contains($cliente, implementacion) or not(implementacion))]"/>
    Now, it's working...

  • Xsl:message issue in xsl transformation while throwing an error.

    Hi,
    Below is error handling logic which im using to handle the DVM value not found error if the user input value is not found in dvm. This termiates the xslt processing and throws subLanguageExecutionFault. The issue is im unable to get the customized message which i have coded in <xsl:message> GGGGGGGG.dvm no value found!!! </xsl:message>.
    The audit trail shows XML-22060: (Fatal Error) TERMINATE PROCESSING. with no other customized message given in the xsl:message tag.
    <xsl:when test='dvm:lookupValue("oramds:/apps/AIAMetaData/dvm/GGGGGG.dvm",$DVMSourceCol,/seblabo:SiebelMessage/seblabo:XXXXtoYYYY/seblabo:YYYYY/seblabo:TypeCalc,$DVMTargetCol,"DVMValueNotFound") = "DVMValueNotFound" ' >
    <xsl:message terminate="yes">
    GGGGGGGG.dvm no value found!!!
    </xsl:message>
    </xsl:when>
    Let me know how to populate the customized in xsl:message tag to audit trail or in the fault message.
    Thanks in advance,
    -Rahul

    Hi Rahul,
    I faced the similiar issue. Still I am struggling with that. BTW did u check the soa logs to see if those reflect there? Did you find any workaround/solution?
    Regards,
    Susmit
    Edited by: Susmit_Dey on 8 Aug, 2011 9:29 PM

  • Issue on Web sharing and XSL files

    Hi all,
    What are the things to be taken care while we are doing websharing. I have an issue with one of my xMII projects. Everything is working fine on that server except xsl files. It is not getting transformed into HTML at run time. It is showing in XML format instead. I really doubt the problem is with my web sharing, because the same set of files(<b>including XSL file</b>) are working on a different server without any issue.
    I have done websharing by right clicking on the folder name, selecting the websharing tab and giving Alias name. Is that ok or anything more as to be done?
    Can anyone please trace out the issue.
    Thanks in advance
    Muzammil P.T

    Hi,
    Webroot is still in c:\inetpub\wwwroot, but i set up a new virtual directory to <b>c:\Lighthammer</b> and accessing xMII using the URL http://*...*/Lighthammer
    and my project contects using http://*...*/Lh/CompApps/MyProj/HomePage.html
    (I have given Lh as the Alias name).
    Here, My xMII homepage is working and myProj Homepage is also working fine. Once i calls the HTML pages which contains XSL files, the problem is coming.
    Please Note: The same contents is working on our different server without any change.
    Regards
    Muzammil

  • Once again: Issue with Spaces in XSL

    Hi forum,
    I searched the forum and found several posts on this issue, yet no suggested solution seems to work for me:
    I'm having to instances of type XmlType, one being an XML instance and the other being an XSL instance.
    I set xml:space="preserve" at the stylesheet, added a space with <xsl:text> </xsl:text> and even tried various other options.
    When I then transform the XMLInstance like so:
    XMLInstance.transform(XSLInstance) the resulting XMLInstance is properly transformed, but all spaces are gone.
    Although trying hard, I wasn't able to find a working solution. Strange is that this seems to work without any issues in XMLSpy when I convert the stuff manually.
    Can anybody help?
    Thx, Jürgen

    Hi tp5harp,
    According to your description, your hyperlink is not working after exporting the report into Excel. Right?
    In Reporting Services, Hyperlinks that appear in text boxes are rendered as Excel hyperlinks in the cell in which the text is rendered. Hyperlinks for images and charts are rendered as Excel hyperlinks on the image when rendered. When clicked, the hyperlink
    opens the client’s default browser and navigates to the target URL. However, it still reported issues of Hyperlinks in Excel. Please see a similar threads here:
    Error message when clicking hyperlink in Excel file
    For you issue, we
    would recommend to submit a feedback to the Microsoft Connect at this link
    https://connect.microsoft.com/SQLServer/Feedback.
    This connect site will serve as a connecting point between you and Microsoft, and ultimately the large community for you and Microsoft to interact with. Your feedback enables Microsoft to offer the best software and deliver superior services, meanwhile
    you can learn more about and contribute to the exciting projects on Microsoft Connect.
    Best Regards,
    Simon Hou

  • Issue with XSL transformation in Java Stored Procedure

    Hi,
    Am having issue applying XSL transformation in Java Stored procedure. I have loaded the java class as well as .XSL files through loadjava uility and their status in DB is VALID.
    Below is the code in the java stored procedure:
    public static String tranform(String strInputXML ){
    URL url = ClassLoader.getSystemClassLoader().getResource(first.xsl);
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(new ByteArrayInputStream (strInputXML.getBytes("UTF-8")));
    TransformerFactory tFactory = TransformerFactory.newInstance();
    StreamSource stylesource = new StreamSource(url.openStream());
    Transformer transformer = tFactory.newTransformer(stylesource);
    When I run this procedure, am getting following errors:
    {color:#ff0000}*ERROR: 'No such file or directory'*
    FATAL ERROR: 'Could not compile stylesheet'{color}
    My first.xsl file has reference to other excel file (Ex: &lt;xsl:include href="second.xsl"/&gt;) which seems to be causing this error. When I remove the reference, procedure is working fine.
    Pls let me know how to resolve this and read the .XSL file with references.
    Thanks,

    Hello,
    Thanks for the reply. Actually I have seen that post before creating this thread. I thought that I could make use of java mail to work around this problem. I created a java class that succesfully sends mail to SSL host. I tried to call this java class from pl-sql through java stored procedure. That did not work
    So, is this not supported in Oracle ? Please note that I have tested this in both 9i and 11g , in both the versions I got the error. You can refer to the code in the above post.
    Thanks
    Srikanth
    Edited by: user12050615 on Jan 16, 2012 12:17 AM

  • Issue with reading a xml file from xsl

    Hi,
    When I am trying to read a xml file from xsl, I am getting unwanted output.
    Following is the 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="../xsd/B2BMarketProperties.xsd"/>
          <rootElement name="ReceipentIDType" namespace="http://www.example.org"/>
        </source>
      </mapSources>
      <mapTargets>
        <target type="XSD">
          <schema location="../xsd/B2BMarketProperties.xsd"/>
          <rootElement name="ReceipentIDType" namespace="http://www.example.org"/>
        </target>
      </mapTargets>
      <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.4.0(build 110106.1932.5682) AT [TUE DEC 03 16:06:03 EST 2013]. -->
    ?>
    <xsl:stylesheet version="1.0"
                    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xmlns:ns0="http://www.example.org"
                    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:med="http://schemas.oracle.com/mediator/xpath"
                    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns:ora="http://schemas.oracle.com/xpath/extension"
                    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                    exclude-result-prefixes="xsi xsl ns0 xsd bpws xp20 mhdr bpel oraext dvm hwf med ids bpm xdk xref ora socket ldap">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
      <xsl:variable name="ReceipentID" select="document('../xsd/B2BMarketProperties.xml')"/>
      <xsl:template match="/">
        <ns0:ReceipentIDType>
        <xsl:for-each select="$ReceipentID">
          <ns0:ReceipentID>
            <xsl:value-of select="$ReceipentID"/>
          </ns0:ReceipentID>
          </xsl:for-each>
        </ns0:ReceipentIDType>
      </xsl:template>
    </xsl:stylesheet>
    Following is the XML ( B2BMarketProperties.xml)
    <?xml version="1.0" encoding="UTF-8" ?>
    <ReceipentIDType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://www.example.org B2BMarketProperties.xsd"
                     xmlns="http://www.example.org">
      <ReceipentID>123</ReceipentID>
      <ReceipentID>345</ReceipentID>
    </ReceipentIDType>
    The output i am getting with this code is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ReceipentIDType xmlns:ns0="http://www.example.org">
        <ns0:ReceipentID>123345</ns0:ReceipentID>
    </ns0:ReceipentIDType>
    But, I need output in the following format
    <ns0:ReceipentIDType xmlns:ns0="http://www.example.org">
        <ns0:ReceipentID>123</ns0:ReceipentID>
         <ns0:ReceipentID>345</ns0:ReceipentID>
    </ns0:ReceipentIDType>
    Could you guys let me know what i am doing wrong. Any help would be appreciated.
    Thanks,

    This worked for me :
      <xsl:template match="/">
        <ns0:ReceipentIDType>
          <xsl:for-each select="document('B2BMarketProperties.xml')/*:ReceipentIDType/*:ReceipentID">
            <xsl:variable name="count" select="position()"/>
            <ns0:ReceipentID>
              <xsl:value-of select="document('B2BMarketProperties.xml')/*:ReceipentIDType/*:ReceipentID[$count]"/>
            </ns0:ReceipentID>
          </xsl:for-each>
        </ns0:ReceipentIDType>
      </xsl:template>

  • Xsl tag issue

    Just want to compare the result of one tag is equal to 'US' then display value of <xsl:value-of select="Amount/Currency/Code" />
    else it has to display the value of <xsl:value-of select="Amount/Currency" />
    I am trying some thing like this...
    <xsl:if test="<xsl:value-of select="Address/2Digit"/> = 'US'>
    <xsl:value-of select="Amount/Currency/Code" />
    </xsl:if>
    if the 2digit country is not US then it has to display the value of the below tag
    <xsl:value-of select="Amount/Currency" />

    <xsl:value-of select="Address/2Digit"/>"2Digit" is not a valid XML name, is it a typo?
    Anyway, you can use <tt>xsl:choose</tt> element :
    <xsl:choose>
      <xsl:when test="Address/Digit='US'">
        <xsl:value-of select="Amount/Currency/Code" />
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="Amount/Currency" />
      </xsl:otherwise>
    </xsl:choose>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Issue with XML & XSL...

    Hi All,
    I am trying to display a saved XML file with a pre-defined
    XSL, which was provided to us by a third party vendor. The XML file
    is the same format the third party vendor expects it to be:
    This is the code I am using to display the XML file in HTML
    friendly way..
    <cffile action="read"
    file="#Request.ReportPath#/Report.xsl" variable="ReportXsl">
    <cfset xmldoc =
    XmlParse("E:\Inetpub\EMPProjDEV\Reports\Report_2003.xml")>
    <cfoutput>#XmlTransform(xmldoc,ReportXsl)#</cfoutput>
    But the display page comes up empty. No error either. Am I
    missing something??

    Hi,
    This is what i Get if i use the cfscript and writeoutput to
    do the xml transformation ..
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html> <head> <META http-equiv="Content-Type"
    content="text/html; charset=utf-8">
    <title>Report</title> </head>
    <body></body> </html>
    The XSL styles inside the body tag are not getting processed.
    Can someone shed any light on this? I have never worked with XSL's
    before.

  • 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

  • Issue with and characters in the xsl

    We are using SOA process to invoke a third party web service, which basically takes input payload and pass that to other service as a string by keeping that in CDATA. Third-party web service is giving an error if we pass &lt; and &gt; instead of < and > symbols in the payload string.
    In SOA, when doing xsl transformation it gives an error if I use < and > symbol.
    Below is the snippet from xsl file, could you please suggest how to pass < and > symbols from SOA.
    <xsl:template match="/">
    <tns:SubmitToXXX>
    <tns:xml>
    <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
    <xsl:copy-of select="/"/>
    <xsl:text disable-output-escaping="yes">]]</xsl:text>
    <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
    </tns:xml>
    </tns:SubmitToXXX>
    </xsl:template>
    Appreciate your suggestions on this.
    Thanks.

    Maybe 7zip or another tool has workarounds for broken file names, you could try that.
    Or you could try to go over the files in the zip archive one-by-one and write it to files out-1, out-2, ..., out-$n without concerning yourself with the file names. You could get file endings back via the mimetype.
    This script might work:
    #include <stdio.h>
    #include <zip.h>
    static const char *template = "./out-%04d.bin";
    int main(int argc, char**argv)
    int err = 0;
    zip_t *arc = zip_open((const char*)argv[1], ZIP_RDONLY, &err);
    if(arc == NULL)
    printf("Failed to open ZIP, error %d\n", err);
    return -1;
    zip_int64_t n = zip_get_num_entries(arc, 0);
    printf("%s: # of packed files: %d\n", argv[1], n);
    for(int i = 0; i < n; i++)
    zip_stat_t stat;
    zip_stat_index(arc, i, ZIP_FL_UNCHANGED, &stat);
    char buf[stat.size];
    char oname[sizeof(template)];
    zip_file_t *f = zip_fopen_index(arc, (zip_int64_t)i, ZIP_FL_UNCHANGED);
    zip_fread(f, (void*)&buf[0], stat.size);
    snprintf(&oname[0], sizeof(template), template, i);
    FILE *of = fopen(oname, "wb");
    fwrite(&buf[0], stat.size, 1, of);
    printf("%s: %s => %lu bytes\n", argv[1], oname, stat.size);
    zip_fclose(f);
    fclose(of);
    zip_close(arc);
    return 0;
    Compile with
    gcc -std=gnu99 -O3 -o unzip unzip.c -lzip
    and run as
    ./unzip $funnyzipfile
    You should get template-named, numbered output files in the current directory.
    Last edited by 2ion (2015-05-21 23:09:29)

Maybe you are looking for