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

Similar Messages

  • In LV, using TS API, how do I specify the VI module for a Pass/Fail step?

    I am writing a LabView VI which will let a user write a TestStand sequence. Each step in the seq is the same type, a Pass/Fail test. I need to specify for each step the LabView VI module location, and an input buffer. I am having difficulty finding out how to specify the module for the step using the TestStand API in LabView. How to do this????

    Hi Drew,
    I think Dennis might have come at this from the wrong angle.
    Have a look at the example that ships with TestStand under
    \Examples\SequenceBuilderTool\LabVIEW
    This might give some clues, but I'd suggest posting this question over to the TestStand discussion Forum as suggested by Dennis.
    There'll be a few more people there who can help a bit more in-depth
    My personal suggestion is to create a custom step type that calls the .vi's and then you can create the steps in a new sequence file using your tool easily. This could be cumbersome for you if you already have a lot of steps setup.
    Better then to create a resource to get the steps out of to clone them by creating a sequence file which is full of your steps. When you have a handl
    e to a cloned step, you can change properties about it in memory, before putting it into the sequence (i.e. change it's name and stuff)
    Otherwise you need to get the type and create a new step of this type.
    If all you're stugling with is the module to call, then for the step you have a handle to, change the
    you can either change the "Step.TS.SData.ViPath" as a string (TestStand set property value String with a reference to the sequence_context) or if you wanted to bring up the specify module dialog, if you have a handle to the step itself, call the method SpecifyModule.
    Hope that helps
    Sacha.
    // it takes almost no time to rate an answer

  • Rules: How can I specify the repository file?

    Hello,
    I am trying to define the repository file but, as I am using a internet explorer which is not in the same machine as the product, I cannot see the browse to select the file location.
    The product is in HP machine. Do I have to write some special character such as "file://<path_file>" or "machine:<path_file>"
    I am trying with <path_file> and it doesn't work.
    Best regards,
    Miguel

    Thank you,
    I will try resetting the SMC and PRAM whatever this might mean and also
    I will try to add more memory as mine is only 4GB and an SSD drive.
    The funny thing is that my son advised me exactly the same thing a week ago
    but I did not have the chance to fix this yet! He is going to laugh when I tell him your suggestion
    Lena

  • Jaas How to specify the config file

    Hi
    I'm working on a web app based on Sun's App Server 8. I am implementing security using a Jaas LoginModule. I cant figure out how i can specify the config file because if i make the change in the java.security file the server throws all sorts of exceptions....... i'm not sure how i can go about that..
    Thanks..

    Read the documentation. There are several different files that you can use to specifiy the handler to use for a particular context. One is ${user.home}/.java.login.config

  • How do I specify the JRE i wish to use to Run an Application.

    Hi Everyone;
    Please bear with me if you read this before.
    I have installed java 1.3.1 and java 1.4.1 in that order.
    The JRE used by default is java 1.4.1
    How do I specify the JRE I wish to use to Run an Application from a command prompt.
    Example:
    Java -something org.jboss.Main
    help ??
    Stephen

    I was a lil embarrassed. I told my supervisor that the installation of java overwrites the JRE and that's that.
    My supervisor took 10 minutes and went through it and found java.exe in the System32 file.
    The java.exe file is found in guess where "C:/WINNT/System32/" folder how nice. C:/WINNT/System32/ is in the path. Not only that it's the first entry in the path. So when I execute java it is not using java.exe any one of the java files that I got from the java website.
    So I don't have any control over the version.
    Oh well;
    That's life. That's 1 for my supervisor.
    Stephen

  • How can we specify the Mailbox for Notes?

    In Mail.app, how can we specify the Mailbox for Notes (where the new notes will be resided)? It is now 'On My Mac'. I wish to change to my IMAP Mailbox so it sync with my iPhone by just checking email (not by syncing on iTunes).
    Thanks in advance.
    Message was edited by: Ekapon

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • How can I specify the default tab in a CHM Output?

    My company uses CHM-based help for some of its products. We build the CHM files from RoboHelp 9, and while these CHM files don't really have a full Index attached to them, the Index tab shows up in the output anyway. Unfortunately, we are suddenly seeing that when the CHM file is launched from our program, the Index tab is displayed by default. We'd rather have the Contents tab be the default look, especially considering that the Index does not exist.
    I have poked around into how you can specify a default tab for a CHM file, and the only information I have found suggests that using a CHM file creates a file (HH.dat) that specifies which tab should be displayed on a user-by-user basis, and that the last tab displayed when you close the CHM should be the first one displayed when you re-open it. While this is true if you open the CHM independent from the product, when you launch it from our program, it's all Index, all the time.
    So, my question is: How can I specify the default tab for a CHM file? Or, failing that, how can I excise the Index tab from my CHM output.

    Hi there
    This will be something up to your application developer to resolve. When s/he issues the call to open the CHM, there are parameters that may be used to always open with the desired tab "in front".
    Point your developer to the link below and advise that s/he is most likely interested in the section titled: Programming Tips.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How do i specify the port form where i want to send the mails

    i have smtp server which by default has proxy at port 25.So i want to send the mails through some other port.So how can i specify the exact port in the bean(i am using a bean to send email) so that all the mails through that port.my machine is having public ip.so what i do is Properties prop = new Properties();
    prop.put("mail.smtp.host",hostname);but how do i specify the port name coz this sends the mail at port 25 by default.

    prop.put("mail.smtp.port",portnumber)

  • How can I specify the attribute AU_SIZE in OUI

    Hello,
    How can I specify the AU_SIZE when i create the disk group for OCR and Voting disk when i install the GI home.
    Basically i want to create the Disk group with AU_SIZE as 4MB when i create it Via OUI.I know I can edit the attributes when i do using ASMCA.But not sure about OUI.
    Please can someone guide me ?
    Regards
    Joe

    Hi Joe,
    Did you mean that i will need to move the OCR/voting **** to another diskgroup -> drop the one created during installtion -> recrerate the diskgroup with AU_SIZE as desired Yes.. you must move OCR, VOTING and ASM SPFILE to another diskgroup and recreate the diskgroup.
    Doc said : Oracle recommends that the allocation unit (AU) size for a disk group be set to 4 megabytes (MB).
    I do not see benefits to configure the AU SIZE 4MBytes for diskgroup that will store only Clusterware Files.
    The voting files are stored directly on ASM Disk (i.e not use AU SIZE). The OCR File and ASM SPFILE use AU SIZE, but are not frequently accessed (low I/O) and files are too small to configure AU to 4MBytes.
    Set AU SIZE makes a difference when you do need high I/O throughput. i.e: Used to Diskgroup that will store Datafiles.
    I recommend you read my point of view how to store VOTING Files, OCR and ASM SPFILE on ASM.
    Re: 3rd voting disk on nfs share
    Regards,
    Levi Pereira

  • How do I specify the right Y axis for an annotation in cwGraph?

    Hi,
    I'm useing MS 7.0 under LW/CVI 7.0 on Windows XP.
    I have a cwGraph in an ActiveX container with 4 plots on it. I'm using
    annotations, but when I specify the coordinates of the cwShape (or
    cwCaption) object, it always uses the Y axis
    of the first plot. So when I try to put an annotation on the 2nd plot,
    the Y coordinate is wrong (since it uses the Y coordinates of the first
    plot).
    I tried associating plots with the cwAnnotation object but it didn't seem to help.
    How could I associate an Y axis with one of these objects?
    Thanks in advance,
    svk

    Hi Phyllis,
    The two axes on a bar chart are the Category axis and the Value axis. The category axis consists, generally, of  a list of titles. Always text. For this reason, the Chart feature expects the Category axis data to be in a Header Column, usually Column A.  (Header columns always default to text format, unless forced to something other than Automatic or Text.)
    With your Category titles in Header Column A and your various parts of the value in columns B, C, etc., Select all the data columns and then Insert the Stacked Bar Chart. Your Categories should be properly displayed.
    Jerry

  • How can we specify the number of decimals to be printed

    How can we specify the number of decimals to be printed
    such as "%5.2d" in C.
    Can anyone help me

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • HT1277 how do i specify the default mail account

    how do i specify the default mail account if i have more than one accounts?
    Not to worry i have found the setting, thanks
    Message was edited by: Teli Proto

    hmmm.. I've been complaining about this to the engineers for over a year. The storage location should be chooseable as should there also be a backup feature (as in Addressbook and iCal).
    for those that want to change this... it would be cool for someone to write a non cryptic, complete 1,2,3 stepped procedure.
    That is.. exactly what do you change to what in the mail user preference file? And what do you use to change it.. text edit? "[ ]" heretofor = folder
    I would like to change my Mail storage location to the my [Documents] . Using Text Edit, I went into my user [Library], to [Preferences] and opened the com.apple.mail.plist and changed all the ~/Library/mail storage locations to ~/Documents/Mail
    lastly I moved the [Mail] that was in the [Library] to my [Documents].
    Didn't work. Restarting Mail got me into the guided set a new account (and as far as I can see there IS no way of not taking the guided set up as alledged above). There must be something, some built-in direction other than in the [Preferences] defaulting mail to be saved in the [Library] folder
    If someone has done this and been successful.. a 1,2,3.. list would be apprecaited... and please don't leave any details out. Thanks
    dual core Intel G5   Mac OS X (10.4.5)   Pismo powerbook specialist

  • HT1311 I changed my apple id and have a gift card credit on the old account which I no longer use.  How do I transfer the gift card $ to my new apple id?

    I changed my apple id and have a gift card credit on the old account which I no longer use.  How do I transfer the gift card $ to my new apple id?

    Click here and request assistance.
    (75296)

  • I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    Hello mrmacjohn,
    Verifying that any iCloud account that may be signed in is signed out should resolve this error.
    On your Mac, open iCloud preferences, then click Sign Out.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Cheers,
    Allen

  • How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    Use OmniDiskSweeper
    Once you find file, it can be deleted from within OmniDiskSweeper
    Allan

Maybe you are looking for

  • Using SQVI to generate report of open and released delivery schedule lines

    All, I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company. I used the logical database MEPOLDB instead of a table joint and pulled fields

  • How do I fix this (cheaply)?

    My Powerbook fan has been quite loud for the past few months, so I bought a bottle of compressed air to spray off any dust that may have been surrounding it. Not only did it not work, it made my computer WORSE. The colors on my screen are screwing up

  • Camera raw plugin for photoshop 5.5 (windows) not updating

    Hi, I'm trying to update the camera raw plugin (min 8.2) in photoshop 5.5 for windows. I downloaded, ran, installed camera raw plugin 8.6 and rebooted. The installation wizard shows as installed but when I open photoshop it still has camera raw 6.7.0

  • Windows support software loading forever...

    Just bought a macbook pro 13' and installed windows (original home premium) on it via boot camp. Both mac and windows are working, used the option key when rebooting and tested both, everything seems to be perfectly working. Internet and special keys

  • How do i change book from x-large to large?  when ordering...

    i've been working on a photo book and reached the end where I need to BUY BOOK however I realize that I am ordering an x-large book when what I want is a large book (hardcover).  How do I made the change?  Can't figure that out.  Thank you.