Creating an html file in XI using an xsl stylesheet  -- two error types

Hi
I am working on mapping an xml invoice to an html-file using a stylesheet  (xsl-file)  in the message mapping in XI 3.0.
Thus the inbound message is an xCBL Invoice and the output message is to be an html file. I name the output file "%supplierid%_%invoiceid%.html using the variable substitution functionality in the communication channel.
I have two problems:
1) the <br/> tags in the stylesheet are changed to "<br>" in the resulting html file causing problems in the output file, as this is not valid XML.
2) I would like to insert the current date and time in the output file and I am using this code, but the date and time is not picked up:
<B>
      Received:
      <xsl select="xs:string(fn:current-dateTime())"></xsl>
</B>
How do I solve these two problems?
BR
MIkael

please note, that it is the tag "br/" that is changed to "br" in the html file.

Similar Messages

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Create a html-file from a JTextPane

    i want to create a html-file and i want to use a JTextPane for the input of information.the text can be bold, italic, underlined and so on. i want to set the html-tags for this text-style in the html-file.
    any ideas.
    thanks for help.

                        try {
                             BufferedWriter bw = new BufferedWriter(
                                                      new FileWriter(fileName) );
                             bw.write(myTextPane.getText() );
                             bw.close();                    
                        catch (IOException exc) {
                             exc.printStackTrace();

  • "Export to html" creates ALL html-files

    Hello,
    a few weeks ago Muse suddenly created ALL html-files even if I didn't change a thing on some of those.
    Muse only creates new css-files for those pages I've changed something on.
    What can I do?
    Thanks,
    Ylva

    Hello,
    In case you change the location then it exports all the files.
    Did you change the Export location or the .muse file location?
    Thanks & Regards,
    Sachin

  • Creating initial HTML file

    I'm doing the tutorial, and the video shows a dialog box popping up where you can create the HTML file, but no such dialog box pops up. How should I proceed? It's quite frustrating to be stuck on the second step of a long process.

    Hi there,
    Are you referring to the Welcome Screen for Dreamweaver that shows sections like Open Recent Item, Create New and Top Features? If so, you can do 1 of the following:
    1. Select File > New > HTML and click the Create button to create a new HTML page.
    2. Open the Preferences screen by selecting the Dreamweaver menu, then Preferences. Then, you can click the Show Welcome Screen checkbox to show the Welcome Screen highlighted in the video.
    I hope this helps, if I've missed your point, please let me know.
    Cheers,
    Maile

  • How can I edit an html file in Firefox using View Source?

    I have created an html webpage and saved it to my pc. I can't edit the html file in firefox when I right click on the page and select "View Source". I can view the code but I can't edit it. I can do this in IE9.
    I thought I was able to do this before in Firefox.
    Did my settings change somewhere that I can no longer do this?
    Do I have to have something checked in the Web Developer extensions for it to work?
    I'm using Firefox 24.0
    Thank you for any help with this. :)

    The View Source window in Firefox cannot be used to change computer codes. Nor can the Web Developer tools.
    Sorry for any inconvenience.
    I suggest using Programmer's Notepad.

  • Was it GoLive or Dreamweaver...tool for laying out site that then creates the html files?

    I can't remember if it was Dreamweaver or Golive...
    I remember a tool that allowed me to layout a web
    site...graphically....I could create a index.html file...then
    about.html, contact.html, services.html....link the structure of
    the files together....such as all files are subordinate to
    index.html...then push OK somewhere and all the files would be
    created. Also you could print out the layout/structure of the
    website.
    Is there such a capability in CS3 DW? I am using Leopard on a
    MAC.
    Thanks, --bill

    > Is there such a capability in CS3 DW?
    No.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "bdaul" <[email protected]> wrote in message
    news:fgce2u$p2s$[email protected]..
    >I can't remember if it was Dreamweaver or Golive...
    >
    > I remember a tool that allowed me to layout a web
    site...graphically....I
    > could create a index.html file...then about.html,
    contact.html,
    > services.html....link the structure of the files
    together....such as all
    > files
    > are subordinate to index.html...then push OK somewhere
    and all the files
    > would
    > be created. Also you could print out the
    layout/structure of the website.
    >
    > Is there such a capability in CS3 DW? I am using Leopard
    on a MAC.
    >
    > Thanks, --bill
    >

  • FSE3 to create an html file in background

    I would like to publish our account hierarchy to our intranet by sending the accounting structure from FSE3 to a Html file that run nightly in the background.  We have created a BDC to use FSE3.  Runs great in foreground but fails in background due to Enjoy controls.  Is there a standard SAP report that would produce the same hierarchy?
    Thanks,
    Susan

    Hi Stephen,
    Use Open dataset, Transfer, Close dataset to create file on Application server.
    Use FM Z_CONV_ITAB_TO_TAB_DELIMITED to convert your lines in TAB delimited format. you can download file from your application server to presentation server using T Code CG3Y and give extension as .xls ...
    As you data is Tab delimited it will automatically get formatted in columns in your EXCEL file.
    Regards,
    Mohaiyuddin

  • WHAT IS THE BEST WAY TO CREATE AN XSD FILE (TO BE USED BY SOAP ADAPTER)

    Dear friends
    I have a simple scenario.
    OUTBOUND DATA  -->  SOAP ADAPTER  --> ( XI )  -->  RFC ADAPTER  --> INBOUND DATA
    The XML file that I got from mapping area of IR (Design) is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_NAME_SOURCE xmlns:ns0="http://test3.com">
       <FIRSTNAME>DAVE</FIRSTNAME>
       <LASTNAME>SMITH</LASTNAME>
    </ns0:MT_NAME_SOURCE>
    If you notice, there are only 2 fields.
    I need to create an XSD file and import it as an external object, which I can use for SOAP Adapter.
    Which is the best way to create it.
    Also, I need to know if there is any step by step of sending a message from XML SPY. I have downloaded this software, but am not able to undertand how to use this.
    Hope to hear from any experts on this forum.
    Thanks in advance
    Ram

    Hi Ram,
    See the below blog..
    It shows how to send SOAP message using XML Spy.
    It also shows how to generate wsdl.
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Regards,
    Sumit

  • Creating a HTML file in a java class

    Hi everybody,
    I want to create,configure and open a html file all that in a java class so can you help me please

    floulou_01 wrote:
    Hi everybody,
    I want to create,configure and open a html file all that in a java class so can you help me please
    Prune pointless queries
    Resist the temptation to close your request for help with semantically-null questions like "Can anyone help me?" or "Is there an answer?" First: if you've written your problem description halfway competently, such tacked-on questions are at best superfluous. Second: because they are superfluous, Forum regulars find them annoying - and are likely to return logically impeccable but dismissive answers like "Yes, you can be helped" and "No, there is no help for you."
    --Paraphrased from [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html] by Eric Steven Raymond
    So, the answer is yes. Your first step would be to post your actual question.
    ~

  • Problem with sending large HTML files as attachment using JavaMail 1.2

    Hi dear fellows, i am currently working on posting Emails with attachments using JavaMail 1.2. i succeeded in sending many mimetypes of files as attachments except for .htm and .html files. when large HTML files (say, >100 kB) serve as attachements, the mail is posted on mail server, but not properly posted since only the first small part of the file is writted into mail server but the latter part of the attachment file is missing.
    is that a bug of JavaMail??? are there any fellows encountering similar problem as i did??? any suggestions for me to proceed? hopefully i made myself clear...
    Many thanks in advance,
    Fatty

    i've sort of found the cause for that, it is because when the stream write to the mail server, unfortunately there is a "." in a single line. so the server refuse to take any more inputs.
    so do i have to remove all the "." in the file manually to avoid this disaster? any suggestions??
    Fatty

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • Cannot open HTML files on Win7 using FF 3.6.10 as default browser.

    When I click on any HTML file in Windows 7 (64 bit, Ultimate) I get an error dialog that says "There was a problem sending the command to the program."
    The only way I can open local HTML files is with IE as default browser - which I do not want.
    I first noticed the error when clicking links in emails in Outlook 2010. But now it also happens on any local HTML file - like help files (help files that I really need to be able to easily read).
    I have tried editing the registry (this solution found at http://www.raymond.cc/blog/archives/2008/03/25/fix-general-failure-when-open-link-or-url-from-outlook-and-windows-mail/) which temporarily fixed the problem, but would not work a second time to fix the issue as the change I made was still present in the registry, so nothing to do.
    I tried making IE the default browser then making FF the default browser again, but that didn't work.
    I tried checking the default program for HTML files in Win7, but that is set to FF.
    I don't get it. This just started happening in the last 2 weeks or so.
    The "This happened" drop-down below is not entirely correct. This happens whenever I click on a local HTML link or a link in an Outlook email. But, the "This happened" drop down does not have an option for "When I click a local HTML link".

    ( links in emails )
    this is what fixed my issue with links in my windows live mail
    in Firefox go to tools >options >advanced > general tab > at the bottom click the check now button to make sure Firefox is your default browser . if its not click yes to make it default now your links in emails should open in Firefox properly

  • Kindly help me how to view html file in swing using jbutton

    hello..im a begginer at j2se language and im working on my school project..kindly help me how to view html files by clicking button at javax.swing..thanks

    Here you go:public class HTMLViewer implements Runnable, ActionListener
         public void run() {
              JFrame frame = new JFrame("View HTML");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JButton button = new JButton("Click me!");
              button.addActionListener(this);
              Container cp = frame.getContentPane();
              cp.add(button, BorderLayout.CENTER);
              frame.pack();
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
         public void actionPerformed(ActionEvent e) {
              if (Desktop.isDesktopSupported()) {
                   Desktop d = Desktop.getDesktop();
                   try {
                        d.browse(new URI("www.google.com"));
                   } catch (IOException ex) {
                        ex.printStackTrace();
                   } catch (URISyntaxException ex) {
                        ex.printStackTrace();
         public static void main(String[] args) {
              EventQueue.invokeLater(new HTMLViewer());
    }If that's not what you're looking for you need to ask more specific questions.

  • How Can I Create A .exe file in java using th enetbeans IDE

    Dear Friends
    i am trying to ceate a .exe file in th e netbeans IDE for jav prorams.
    I am uanble to fine the option to create the .exe file.
    i will be thankfull if you will help me out.

    Search for exe4j

Maybe you are looking for

  • Case Sensitive External Drive for iTunes

    My iTunes Library is currently stored on a case sensitive external drive.  I am moving it to another drive that I found out is formatted as a non-case sensitive (both areJournaled).   When I tried to move my iTunes Library, it would not copy because

  • Oracle Discoverer Administrator not installed with FMW 11.1.1.6 on windows 7 64 bit machine

    Hi, Recently I install the Oracle FMW 11.1.1.6 with Oracle Forms, Reports and Discoverer , 11g database and RCU successfully on windows7 64bit machine. I can able to access the Forms, Reports, Discoverer Plus and viewer thorugh URl successfully. But

  • OpenVPN - up/down scripts not run correctly

    Hi, I have a OpenVPN client on my computer which connects to a remote server at startup (launched by systemd). The connection i primarily used to set up a network drive. To make this process as smooth as possible I'm trying to mount with an up script

  • Free Skype Calling on The iPhone?

    I'm wondering since Skype is an online application and therefore uses internet resources, if I can make calls through Skype for free? I wouldn't think this to be a problem since Skype is easily available online and the iPhone has Safari. Then i'm ass

  • Error writing to file messages when itunes installation is removing files

    I receive almost error writing to file messages when the itunes installation is removing files. I simply click on the retry button without making any access changes and the installation moves on. All of the .rbf files (the first 10 are listed below)