Idoc-xi-file scenario.  how to display file in html format

I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
In idoc-xi-file scenario.......  how to display file in html format ??
Thanks in advance
Kumar

Hi Vijayakumar,
Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
Regards
Kumar

Similar Messages

  • How to display xml to html using xsl?

    hi all...may i know how to display xml to html page?
    i ve included <xsl:output method="html" indent="yes" /> inside my xsl file. i clicked on output.xml file and everything is displayed correctly but the format is xml instead of html. is there anyway to transform it to html?
    below are my xsl and xml codes:
    // xsl file
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="yes" />
    <xsl:template match="/">
    <html>
    <body>
    <h2>Document Contents</h2>
    <table border="1">
    <tr bgcolor="#9acd32">
         <th align="center">Document Name</th>     
         <th align="center">Document ID</th>          
         <th align="center">Owner</th>               
    </tr>
    <xsl:for-each select="Document/Contents">
    <tr>
    <td><xsl:value-of select="DocumentName"/></td>
    <td><xsl:value-of select="DocumentID"/></td>
    <td><xsl:value-of select="Originator"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    // xml file
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="xsltStyleSheet.xsl"?>
    <Document>
         <Contents>
              <DocumentName>register</DocumentName>
              <DocumentID>1</DocumentID>
              <Originator>hhh</Originator>
         </Contents>
    </Document>
    </xsl:template></xsl:stylesheet>

    your XSL transforms to HTML (in fact XHTML): what more do you expect? did you expected anything different from the following output? if yes: what and why?
    <html>
         <body>
              <h2>Document Contents</h2>
              <table border="1">
                   <tr bgcolor="#9acd32">
                        <th align="center">Document Name</th>
                        <th align="center">Document ID</th>
                        <th align="center">Owner</th>
                   </tr>
                   <tr>
                        <td>register</td>
                        <td>1</td>
                        <td>hhh</td>
                   </tr>
              </table>
         </body>
    </html>

  • Problems Uploading a Pages file in html format including pictures to web pa

    I have problems uploading a Pages file in html format to a web page.
    The files itself is downloaded but the images are not. How can I upload a page file in html including the pictures or illustrations?

    I just bought a macbook as well as the iwork software. I am having a few problems. I am a student and when I try to print out documents (originally word documents) it puts them automatically into textedit instead of pages. Also, the pages get all screwed up, things are missing, etc. How do I make pages my default and do i need to export? import? or do something so that these documents show up perfectly in pages?
    A second questions- When i try to print out slideshows in keynote (originally from powerpoint) the handouts print on the little edge of the paper horizontally rather than the long way. I am hoping these are easy adjustments.
    I would appreciate any help anyone can give me.
    Thank you!

  • How to save diagramm in HTML format or PDF it

    how to save diagramm in HTML format or PDF it

    You have two alternatives. First of all, there are many utilities, some of them free that can put a "printer" on your printer list that really writes a PDF file. The one I use is free, called CutePDF. Once you have one of these installed, saving to PDF is as simple as print the diagram, choose the printer associated with your utility, then name the file.
    I'm not sure if it is in your version of Designer, but all of the latest versions of Designer have a "publish diagram" utility. Just drop down the Utilities menu from the RON or the Design Editor. The bottom selection should be "Publish Diagrams...", which will open a dialog window. Choose the diagram(s) you want to publish, select Publish to File, enter a file name, and select a graphics format from PNG, GIF, JPEG, BMP or TIFF. You can easily add the file to an HTML page inside an &lt;IMG&gt; tag.

  • Text format + attached image files or Html format + displayed images ?

    Hi, I have this kind of probleme and I need some help.
    (Code : see below)
    I want to send a mail with some attached image files.
    For the message part, I create a MimeBodyPart and add two kinds of message (text or html) and this part is multipart/alternative.
    For the attachment part, I create another MimeBodyPart and I set the Header like this : xxx.setHeader("Content-ID", "<image>").
    When I use outlook (html format) , I receive a mail with the picture displayed at the bottom, it's perfect.
    However the problem is for the mailbox which is in text mode, I receive a mail with message + attachment files, but I also have some image frames generated by xxx.setHeader("Content-ID", "<image>") I guess.
    Who can give me a hand to implement something that able to make difference according to text format or html format.
    I post my code here, thanks a lot :
    //set Message
         msg.setText(pMsgText, DEFAULT_CHARSET);
         // Partie Texte brut
         MimeBodyPart textPart = new MimeBodyPart();
         String header = "";
         textPart.setText(header + pMsgText, DEFAULT_CHARSET);
         textPart.setHeader(
                   "Content-Type",
         "text/plain;charset=\"iso-8859-1\"");
         textPart.setHeader("Content-Transfert-Encoding", "8bit");
         // Partie HTML
         MimeBodyPart htmlPart = new MimeBodyPart();
         String images = BTSBackUtil.generateImgSrc(pictureContainers.length);
         String endPart = "</div>\n</body>\n</html>";
         htmlPart.setText(pMsgTextHTML+images+endPart);
         htmlPart.setHeader("Content-Type", "text/html");
         // create the mail root multipart
         // Multipartie
         Multipart multipart = new MimeMultipart("mixed");
         // create the content miltipart (for text and HTML)
         MimeMultipart mpContent = new MimeMultipart("alternative");
         // create a body part to house the multipart/alternative Part
         MimeBodyPart contentPartRoot = new MimeBodyPart();
         contentPartRoot.setContent(mpContent);
         // add the root body part to the root multipart
         multipart.addBodyPart(contentPartRoot);
         // add text
         mpContent.addBodyPart(textPart);
         // add html
         mpContent.addBodyPart(htmlPart);
         // this part treates attachment
         if (pictureContainers != null){
              PictureContainer pictureContainer = new PictureContainer();
              String fileName = "";
              for(int i = 0; i < pictureContainers.length; i++) {
                   pictureContainer = pictureContainers;
                   byte[] bs = pictureContainer.getImgData();
                   fileName = "image" + i +".jpg";
                   DataSource dataSource = new ByteArrayDataSource(fileName, "image/jpeg", bs);
                   DataHandler dataHandler = new DataHandler(dataSource);
                   MimeBodyPart mbp = new MimeBodyPart();
                   mbp.setDataHandler(dataHandler);
                   mbp.setHeader("Content-ID", "<image"+i+">");
                   mbp.setFileName(fileName);
                   multipart.addBodyPart(mbp);
    // end attachment
    msg.setContent(multipart);

    Hi All!!! I have created this code , i hope this w'll solve u'r problem , this code display u'r html text and display the images below on it, no need to attach the image...... byee.
    package Temp;
    import javax.activation.DataHandler;
    import javax.activation.DataSource;
    import javax.activation.FileDataSource;
    import javax.activation.URLDataSource;
    import javax.mail.Authenticator;
    import javax.mail.BodyPart;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    public class HtmlImageExample {
    public static void main (String args[]) throws Exception {
    String host = "smtp.techpepstechnology.com";;
    String from = "[email protected]";
    String to = "[email protected]";
    //String to = "[email protected]";
    String dir=null;
    //String file = "C://NRJ/EmailApp/src/java/MailDao//clouds.jpg"];
    //File file = new File("C:\\NRJ\\EmailApp\\src\\java\\Temp
    Sunset.jpg");
    // Get system properties
    //Properties props = System.getProperties();
    HtmlImageExample html1 = new HtmlImageExample();
    html1.postImage(to,from);
    // Setup mail server
    String SMTP_HOST_NAME = "smtp.techpepstechnology.com";//smtp.genuinepagesonline.com"; //techpepstechnology.com";
    String SMTP_AUTH_USER = "[email protected]"; //[email protected]"; //techpeps";
    String SMTP_AUTH_PWD = "demo"; //techpeps2007";
    //my code
    public void postImage(String to, String from) throws MessagingException, FileNotFoundException, IOException
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.auth", "true");
    // props.load(new FileInputStream(file));
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getInstance(props, auth);
    // Create the message
    Message message = new MimeMessage(session);
    // Fill its headers
    message.setSubject("Embedded Image");
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    message.setContent
    h1. This is a test
    + "<img src=\"http://www.rgagnon.com/images/jht.gif\">",
    "image/jpeg");
    // Create your new message part
    //BodyPart messageBodyPart = new MimeBodyPart();
    //mycode
    MimeMultipart multipart = new MimeMultipart("related");
    MimeBodyPart mbp1 = new MimeBodyPart();
    // Set the HTML content, be sure it references the attachment
    String htmlText = "<html>"+
    "<head><title></title></head>"+
    "<body>"+
    " see the following jpg : it is a car!
    "+
    h1. hello
    "+
    //"<IMG SRC=\"CID:Sunset\" width=100% height=80%>
    "+
    "<img src=\"http://www.yahoo.com//70x50iltA.gif\">"+
    " end of jpg"+
    "</body>"+
    "</html>";
    mbp1.setContent("h1. Hi! From HtmlJavaMail
    <img src=\"cid:Sunset\">","text/html");
    MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setText("This is a Second Part ","html");
    // Fetch the image and associate to part
    //DataSource fds=new URLDataSource(new URL("C://NRJ//MyWeb//logo.gif"));
    FileDataSource fds = new FileDataSource("C://NRJ//MyWeb//Sunset.jpg");
    mbp2.setFileName(fds.getName());
    mbp2.setText("A Wonderful Sunset");
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setHeader("Content-ID","<Sunset>");
    // Add part to multi-part
    multipart.addBodyPart(mbp1);
    multipart.addBodyPart(mbp2);
    message.setContent(multipart);
    // Send message
    Transport.send(message);
    //mycode
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication() {
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);

  • How to display Report tile html Title on generated report

    Hi
    Could you please give some idea to display Report tile <html Title> on generated report?
    I am not using CrystalReportViewer to export my report
    reportClientDocument = new ReportClientDocument();
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
    reportClientDocument.open(reportName, OpenReportOptions._openAsReadOnly);
    reportClientDocument.getDatabaseController().setDataSource(
    POJOList, Class.forName(CLASSNAME), TABLE_ALIAS, TABLE_ALIAS);
    byteArrayInputStream = (ByteArrayInputStream) reportClientDocument
    .getPrintOutputController().export(ReportExportFormat.PDF);
    Currently its displaying struts action name as title.
    We are using crystal reports 2008
    Thank you

    Try the following extract of code to set the title:
    SummaryInfo newSummaryInfo = new SummaryInfo(reportClientDocument.getReportDocument().getSummaryInfo());
    newSummaryInfo.setTitle("<new reportName>");
    reportClientDocument.modifySummaryInfo(newSummaryInfo);
    reportClientDocument.save();
    reportClientDocument.close();
    I hope this helps.
    Regards.
    - Robert

  • How to send mails in HTML format from the send mail step of workflow?

    Hi,
    I have a requirement where I need to send mails in the html format from the send mail step of the workflows.
    But what I found out that the html tags are not renderd and as such the output is in plain text.
    I know that there is an alternative of using an activity step and use my own custom code from within there,But due to certain business constraints, I need to use the send mail step only.
    My SCOT settings are all right.
    Please let me know how it can be done.
    Thanks,
    Samrat.

    Samrat,
    It can't be done, you have to use your own activity step.
    What are these constraints that refrain you from doing that?
    Rgds,
    Patrick

  • Problem in Displaying image in HTML format for BI Publisher (OTM)

    Hello,
    We are using OTM 6.2 and we are developing the IB reports to the customer.
    I am getting dificulty while displaying the image in HTML format. I used image in JPEG format. When i am running the report, It displayed only in PDF format, but not in HTML and Excel format.
    Please do the needful help in this regards.
    Thanks & Regards,
    Siva Donthi

    Hi Kavipriya,
    i have gone thru all your threads on a similar sort of issue which i am facing now, However i m bit struck as i m newbie.
    Issue:i am insering a static picture from the c drive into the header section of the rtf template and when previewing the rtf template on the BI publisher the jpg image disappears. i have tried adding the url into the format picture -->alt tab.Still no signs of improvement.
    However if just placing the jpg image on header section without using the wrap text it gets displayed.But if i use wrap text on the image ,it disappears.
    could you guide me please in fixing this issue .
    Appreciate your timely response and your co-operation
    Thanks
    Joe

  • How to send mail in html format in jsp???

    Hello everybody,
    I have two jsp pages.In one page I have the heading like Date,Transaction.I am retriving data from my second jsp page.And I hae included the second jsp page to my first jsp page.How to send mail this content in html format.
    Thanks
    Srikant

    MimeMessage m = new MimeMessage(session);
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setContent(content, "text/html");this if u need to send a mail content as html

  • How to send mail in  HTML  format using SMTP

    I want to send mail in HTML format using SMTP.Can anybody please suggest how to do it.Can anybody send me the code.
    Thnx.

    If you don't know how to send a message using JavaMail see here : http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#JavaMailSending
    To send a html format mail you need to set the content type like this (msg is a javax.mail.internet.MimeMessage) :
    String subject = "An Email 4 U";
    String message = "<HTML><BODY>Here is a link<br><a href='http://javasoft.com'>Java</a></BODY></HTML>";
    msg.setSubject(subject);
    msg.setContent(message, "text/html");p.s This isn't really an advanced topic

  • JEditorPane - How to display XML Linked HTML File in JEditorPane ?

    Dear Friends,
    I have a HTML File consisting of stylesheet, xml linked (for data) and with headers, footers...
    When i called a ordinary html file using setpage property of JEditorpane..it's working no problem...but when i call the html file having xml linked or buttons...it's not properly displayed....
    If anybody hits this problem....pls...help me....
    Regards,
    V.Prasanna

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • How to display numbers in triangle format

    Hi All,
    How do I display numbers in the following format;
    1
    1 2
    1 2 3
    1 2 3 4
    Your help will be more appreciated.
    Thank you.

    I couldn't resist:
    SQL> var N number
    SQL> exec :n := 10;
    PL/SQL procedure successfully completed.
    SQL> -- plane
    SQL> select * from (
      2  select lpad(' '||(case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
      3                 then lpad('*',:N*2.5 - level - abs(:N/2-level),'*')
      4      end) --"left wing"
      5      ,50-level, ' ')
      6    || ltrim(sys_connect_by_path(level,' '))
      7    || (case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
      8              then rpad('*',:N*2.5 - level - abs(:N/2-level),'*')
      9      end) -- "right wing"
    10    n
    11  from dual 
    12  connect by level <= :N
    13  order by level);
                                                     1
                                                    1 2
                                                   1 2 3
                              ********************1 2 3 4********************
                             ********************1 2 3 4 5********************
                              ******************1 2 3 4 5 6******************
                                               1 2 3 4 5 6 7
                                              1 2 3 4 5 6 7 8
                                             1 2 3 4 5 6 7 8 9
                                            1 2 3 4 5 6 7 8 9 10
    10 rows selected.
    SQL> exec :n := 6;
    PL/SQL procedure successfully completed.
    SQL> r
      1  select * from (
      2  select lpad(' '||(case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
      3                 then lpad('*',:N*2.5 - level - abs(:N/2-level),'*')
      4      end) --"left wing"
      5      ,50-level, ' ')
      6    || ltrim(sys_connect_by_path(level,' '))
      7    || (case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
      8              then rpad('*',:N*2.5 - level - abs(:N/2-level),'*')
      9      end) -- "right wing"
    10    n
    11  from dual
    12  connect by level <= :N
    13* order by level)
                                                     1
                                                    1 2
                                       ************1 2 3************
                                                  1 2 3 4
                                                 1 2 3 4 5
                                                1 2 3 4 5 6
    6 rows selected.
    SQL>

  • How to display xslt generated html code?

    Hi,
    I transformed xml code into html code inside my action
    class and put generated code into StringWriter, I
    don't
    know how I can display it on my jsp page?
    I tried to turn generated html code into a big string,
    then use bean:write to display it on jsp page, it just
    does not work.
    Has anyone done this kind of thing?
    thanks

    hi
    Just put that String in JSP expression <%= String name %>
    u will see it on browser
    thanks
    hithesh

  • How to display output only sort format in alv

    Hi Experts,
    I have one problem in alv output display. I'm developing alv report for orders raised during the period.I want to display each order wise value(netwr) and order quatity (kwmeng) . i set 8 radio buttons one radio btn click then i want output ex.in grid display click on sort then each order wise calculate the value and quantity . that particular data to display when click on radio button.
    ex:click on sort in grid display.
    (branch) (order no)     (quantity)   (value)                        (BSTNK)
    AMUM     0000003354     2             10                                    3,271
    AMUM     0000003354     1              10                                    6,542
                                                       (above qty sum 2+1=3)  
    (SUM) =   AMUM       0000003354            3                       20            9,813
    HIP2         0000003362     2           5     17,810
    HIP2             0000003362     1          5     23,075
    (sum) = HIP2          0000003362                 10           40,885
    i display output in alv griddisplay.client asking one rb put in selection screen i want output like above only sum col.
    when i click one radio button output is come like (sum) above.
    Please help me.
    Thanks & Regards,
    Balakrishna Gajula

    hi you need to use sortinfo for your requirement.
    ie see the below code.
    "declare sortinfo at data declaration
    data:   wa_sort     type slis_sortinfo_alv,      "''' add this
                layout      type slis_layout_alv.          "add this
    ""make the below changes in your fieldcat
      wa_fieldcat-tabname   = 'FINAL'.
      wa_fieldcat-seltext_m = 'Td - Rvdt'.
      wa_fieldcat-fieldname = 'QUANTITY'.
      wa_fieldcat-do_sum    = 'X'.          """"""add this to your  *QUANTITY field*
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname   = 'FINAL'.
      wa_fieldcat-seltext_m = 'temp''.
      wa_fieldcat-fieldname = 'VALUE'.
      wa_fieldcat-do_sum    = 'X'.             """"""add this to your  *VALUE field*
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
    """"" you need to add this after workarea of fieldcat
      wa_sort-fieldname =  'BRANCH'.  " Here Branch indicates the fieldname
      wa_sort-subtot    = 'X'.
      append wa_sort to it_sort.
      clear wa_sort.
      wa_sort-fieldname = 'ORDERNO'.
      append wa_sort to it_sort.
      clear wa_sort.
    " in your alv fm add sortinfo
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = it_fieldcat
          it_sort            = it_sort                   """""""""add this
        tables
          t_outtab           = final                   " your internal table name
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    This solves your purpose.
    Regards,
    koolspy.

  • How to display data of yuv format without converting rgb in OpenGL ES?

    I have being study about OpenGL ES for iOS.
    I wonder that data of YUV format is can display without converting RGB.
    In most, the yuv data have to convert RGB for display. But, converting process is very slow, Then, that is not display smoothly.
    So, I would like to try to dispaly YUV data without convert to RGB.
    Is it possible? If possible, what can I do?
    Please, let me give a advice.

    Hi Morgan,
    I think you have at least two choices:
    1 - Replace the colons with ', ' (comma and space) - sort of reasonable on screen and in an export
    2 - Create a second page that has the same report but uses the "export: csv" template. Create a manual link to this page to replace the standard Export link. When such report pages are requested, they download immediately instead of displaying. You can, therefore, use commas in this one and &lt;br&gt; tags in the on-screen report version
    Andy
    ps - To display tags in a post, use &amp;lt; for &lt; and &amp;gt; for &gt;

Maybe you are looking for

  • Purchase Order to Ordering Address

    Hello Experts, We have multiple Ordering Addresses for a main vendor which are created with seperate vendor numbers. Main vendor is created with multiple ordering address as Partner Function (OA) on it and individual Ordering Addresses vendors are cr

  • Applets stopped showing after reinstallation

    I noticed recently my browsers stopped showing applets. IE, Firefox, Opera don't show any applets anymore. I have been doing a lot of reinstallation recently. Now I have J2EE in C:\Sun\AppServer with JDK in C:\Sun\AppServer\jdk and JRE in C:\Sun\AppS

  • Nokia E90 firmware battery problem

    Hi! I updated last week my E90 to the latest firmware. Until then, my battery lasted for more than 3 days. Now, my battery lasts for only 18-20 hours when I do not make any phone call. I do not have any bluetooth or WI-FI scanner activated. I do not

  • Uninstall and reinstall without discs

    I need to uninstall and reinstall Adobe Premiere Elements 10. It was originally downloaded from the Adobe site; therefore no discs. I do have the serial number. Shermonr

  • Redirect to  an otage message when OBIEE services down

    Hi, We have OBIEE 11g installed on Weblogic 10.3.3.0 and we have to have an outage message when either BI presentation Service or BI server goes down. Basically redirection to different URL or customized HTML page. I believe there is a customization