Embed HTML tag inside XSLT to generate email content

I want to Embed HTML tag inside XSLT to generate email content .
XSLT is not working in Jdeveloper , when i use the syntax <xsl:output method="html" indent="yes" version="1.0"/> in transformation activity .
Can anyone help to resolve the issue .

in the <xsl:template match=""/> element you can just start with creating your html document
so for example
     <xsl:template match="/">
          <html>
the graphical mapper itself won't i think but when you test the xsl it will still procedure a html document, we use it too to generate the email body contents

Similar Messages

  • How to use HTML tags inside JSF pages

    I am creating a Menu using dataTable and outputLink in a JSF page.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
    <h:column>
    <li>
    <h:outputLink id="crumbID" value="#{bread.menuLink}">
    <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
    </h:outputLink>
    <li>
    </h:column>
    </h:dataTable>
    </ol>
    </div>
    </div>
    I want to use <li> HTML tag as shown in code above before and after every <tr> tag formed, but when i run it and see view source, this is how it shows:
    NOTE: you can see it has thrown out of <table> tag itself.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <li>
    </li>
    <table>
    <tbody>
    <tr>
    <td><a id="_id0:0:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=-1"><span id="_id0:0:crumpName" style="width: 165px;">Home</span></a></td>
    </tr>
    <tr>
    <td><a id="_id0:1:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=3~-1"><span id="_id0:1:crumpName" style="width: 165px;">HIM Admin</span></a></td>
    </tr>
    </tbody>
    </table>
    </ol>
    </div>
    </div>
    Can some one help me, how do i use HTML tags inside <h:dataTable>.
    Or is their any other way i should form my Menus, to fully utilize to HTML tags.
    Thanks
    Ravi

    Hello,
    You can embed the verbatim elements in your datatable, ie,
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
      <h:column>
        <f:verbatim><li></f:verbatim>
        <h:outputLink id="crumbID" value="#{bread.menuLink}">
          <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
        </h:outputLink>
        <f:verbatim></li></f:verbatim>
      </h:column>
    </h:dataTable>

  • Embed HTML tag

    Hi I am toatally new to Flex. and i like RIA.
    I have a question.
    can I embed html tag into flex controls line in panel
    control?
    for example I want to use <table></table> into
    flex's 'panel' control.
    this requirement arose beacase, I have some raw code from my
    previous ajax application with simple html and javascript, and
    typically I used to use them as
    div-Id.innerHTML="<table><row><td>hello</td></tr><table>"
    i simple want to reuse my code with flex RIA
    I shall be highly oblized if anybody could help me as soon as
    possible.
    thanks
    Ravendra

    "ravendra.kumar" <[email protected]> wrote
    in message
    news:g6u91u$q06$[email protected]..
    > Hi I am toatally new to Flex. and i like RIA.
    >
    > I have a question.
    >
    > can I embed html tag into flex controls line in panel
    control?
    >
    > for example I want to use <table></table>
    into flex's 'panel' control.
    >
    > this requirement arose beacase, I have some raw code
    from my previous ajax
    > application with simple html and javascript, and
    typically I used to use
    > them
    > as
    div-Id.innerHTML="<table><row><td>hello</td></tr><table>"
    >
    > i simple want to reuse my code with flex RIA
    >
    >
    > I shall be highly oblized if anybody could help me as
    soon as possible.
    I think you'll find it easier to just work with the Flex
    version of a Table,
    which is the DataGrid.
    HTH;
    Amy

  • How to use html tags inside java

    I have to retrieve data from db and return the data to my index.jsp page.
    Its working fine.
    But I have o display in a pable format using html. How to embed html tags? I tried this way. Its not working. Any suggestions?
       String htmlOpen = "<html>";
        String htmlEnd = "</html>";
        String titleOpen ="<title>";
        String titleEnd ="</title>";
        String bodyOpen = "<body>";
        String bodyEnd = "</body>";
        for (int i = 1; i <= cols;i++){
            output = output + rsmd.getColumnName(i);
         while (rst.next()) {
            for (int i = 1; i <= cols;i++){
                      output = output +rst.getString(i);
      result = htmlOpen + titleOpen + titleEnd + bodyOpen + output+ bodyEnd + htmlEnd;
        stmt.close();
        conn.close();
         return htmlOpen;
      }

    See those charcters in your JSP that look like "<%"? Those characters mean: "the code after this is Java - interpret it as such".
    Then when you close your Java block with "%>", it then means: "the code after this is html - output it to the request response that is being built. However, within the html code, the syntax "<%= java_variable_name %>" means "take the current value of that Java variable and insert it into the html output".
    Here's an example:
    %>
    <table cellspacing="2" cellpadding="2" border="1">
    <tr>
    <%
        String s = null;
        for (int i = 1; i <= ncol; i++)
          s = rsmd.getColumnName(i);
    %>
      <th nowrap><A HREF="<%=sortLink.toString()%>&sortby=<%=s%>"><%= s %></th>
    <%
    %>
    </tr>
    <%
        if (rs == null || numRows <= 0)
          %><tr><td colspan="10" nowrap>No data available for specified query.</td></td><%
        else
          int rowCounter = 0;
          while(rs.next() && rowCounter < PAGE_SIZE)
            rowCounter++;
    %>
      <tr><%
            for (int i = 1; i <= ncol; i++)
              s = rs.getString(i);
              if (rsmd.getColumnName(i).equalsIgnoreCase("password"))
                    %><td nowrap>********</td>
    <%
              else
                %><td nowrap><%= s %></td>
    <%
            %></tr><%
    %>
    </table>This is JSP 101, what they teach in the first hour of class...
    Here's a decent JSP tutorial:
    http://www.jsptut.com/

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

  • HTML tag data displayed in IMAP emails.

    I have recently moved from BES to BIS (my firm has stopped using BES).  My personal POP3 account still works ok.  My work account is now set up via BIS using IMAP to our Exchange server.  BES service books have been deleted.  Email to IMAP account works except that HTML tag data gets displayed in the body of the email (see attached comparison between two accounts of same email). HTML is enabled for both accounts.
    I'm also getting duplicate emails - when I access an existing email in Outlook it seems to generate a duplicate on my BB.
    Any ideas?

    Hi Ernie ~
    Thanks for helping...
    I just checked all my old messages, and now those do not display HTML, either.
    One message which used to display correctly now says this when I preview it:
    "Your Email Client does not support MIME encoding. Please upgrade to
    MIME-enabled Email Client (almost every modern Email Client is MIME-capable)."
    (...boy, if this gets out it could be embarrassing to Mac users everywhere...)
    I cannot get my .mac accounts to be viewed at all (see my recent topic post on this, too), so here I am referring to a Yahoo POP account. Messages display just fine, incidentally, if I read my mail online using Yahoo's webmail reader, even in Safari.

  • HTML tags inside XML

    I am using jsp to read a xml file and display it on the browser. Some of the elements of this xml file have html tags embedded inside them. Right now when I use a <x:out ...>, I get only the text from the element and the html tags get ignored. How do get the html tags to also work?
    example
    <ELEM1>
    For any questions <b>contact</B> us at e-mail
    <ELEM1>

    Set xslt output as html/text.
    <xsl:output method="html/text" />
    <xsl:copy-of select="ELEM1"/>

  • Prob when there is any HTML tag inside netui:label tag

    Hi,
    When i am displaying content in a script directly and if some HTML tag is there in the content like <b> or <i> tag then that particular property is reflected in the displayed content
    Eg: In code: <%=headline %>
    Headine=This is a <b><i>beautiful </i></b>flower
    Output: This is beautiful flower
    When I displayed same headline using <netui:label>
    Eg: In code: <netui:label value=”<%=headline %> ”>
    Headine=This is a <b><i>beautiful </i></b>flower
    Output: This is a <b><i>beautiful </i></b>flower
    So is there any workaround by which I can get same output(as for normal script) with <netui:label> tag
    Thanks

    Hi,
    When i am displaying content in a script directly and if some HTML tag is there in the content like <b> or <i> tag then that particular property is reflected in the displayed content
    Eg: In code: <%=headline %>
    Headine=This is a <b><i>beautiful </i></b>flower
    Output: This is beautiful flower
    When I displayed same headline using <netui:label>
    Eg: In code: <netui:label value=”<%=headline %> ”>
    Headine=This is a <b><i>beautiful </i></b>flower
    Output: This is a <b><i>beautiful </i></b>flower
    So is there any workaround by which I can get same output(as for normal script) with <netui:label> tag
    Thanks

  • No embed html tag in flash CS5

    Hi, I am a newbie in flash. I understand in order to embed my slideshow into my website,  I need to copy the < embed >  tag in the code after publish to HTML and paste in in my webpage. I have done my slideshow and is working but I can't find the < embed > code from my HTML file. Below is my code from my html file, please help.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
         <head>
              <title>Flashslide1</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <style type="text/css" media="screen">
              html, body { height:100%; background-color: #ffffff;}
              body { margin:0; padding:0; overflow:hidden; }
              #flashContent { width:100%; height:100%; }
              </style>
         </head>
         <body>
              <div id="flashContent">
                   <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="700" id="Flashslide1" align="middle">
                        <param name="movie" value="Flashslide1.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="Flashslide1.swf" width="400" height="700">
                             <param name="movie" value="Flashslide1.swf" />
                             <param name="quality" value="high" />
                             <param name="bgcolor" value="#ffffff" />
                             <param name="play" value="true" />
                             <param name="loop" value="true" />
                             <param name="wmode" value="window" />
                             <param name="scale" value="showall" />
                             <param name="menu" value="true" />
                             <param name="devicefont" value="false" />
                             <param name="salign" value="" />
                             <param name="allowScriptAccess" value="sameDomain" />
                        <!--<![endif]-->
                             <a href="http://www.adobe.com/go/getflash">
                                  <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                             </a>
                        <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                   </object>
              </div>
         </body>
    </html>
    Regards
    AO

    Just let CS5 publish an html file and either build into that page or copy from that page into another.  I do not have CS5, so I don't know what it is producing for embedding code.  With the newer versions of code, you might need to include javascript files and possibly other lines of code in the html file. Your best bet is to have a working version of the page that Flash produces and just copy any unique stuff from it until your other pages displays what you want.

  • Embed HTML webpage inside Fireworks

    OK, I've been working on this client's site for almost 2 years and she decides today that we should include her blog in the site. She wants the Fireworks wrapper around the blog... and I'm fried, so I can't think straight.
    She wants to take her existing Fireworks based site and have a user click on the "Blog" button, it would then go to another fireworks page that has her blog embedded in it from blogspot.com... kind of like it's in Fireworks but in a frame.  I've created a slice on the fireworks page that's about 900x1200 to hold the blog page, but how do I get it to appear in the opening?
    Like I said, I'm totally fried right now.  Can I do it from Fireworks or do I have to from Dreamweaver? If so, how?

    You have to do it in Dreamweaver, possibly in an iframe.
    http://www.ehow.com/how_5343818_create-blog-dreamweaver.html
    Fireworks in not an HTML editor. It's for creating images for websites rather than entire websites.

  • How to embed html tags in out.println

    Hi,
    i have the following code in a function in java which passes the JspWriter object
    out.println("<table>");
              out.println("<tr>");
              out.println("<td>User Id</td>");
              out.println("<td>Pack Purchased </td>");
              out.println("<td>Sms Used</td>");
              out.println("<td>Sms Left</td>");
              out.println("<td>New User</td>");
    out.println("</tr></table>");is what i'm doing rite? plz help.

    Hi,
    i' having a problem with the following code.
    the web page isnt displaying anything. its just a blank page. please help
    public void calculateUserDetails(JspWriter out) throws IOException
              out.println("<table border=1>");
              out.print("<tr><td>User Id</td>");
              out.print("<td>Pack Purchased </td><td>Sms Used</td>");
              out.print("<td>Sms Left</td><td>New User</td>");
              out.print("</tr>");
              Enumeration objEnumKeys = hashAllDetails.keys();
              while(objEnumKeys.hasMoreElements())
                 String strHashKey = (String)     objEnumKeys.nextElement();
                 UserDetails objUserDetails = (UserDetails) hashAllDetails.get(strHashKey);
                 intBasicPacksTotalCount += objUserDetails.CountBasicPacks;
                 intAdvancedPacksTotalCount += objUserDetails.CountAdvancedPacks;
                 int intCurrentUserSoldSmsCount = getSoldSmsCountToUser(objUserDetails);
                 intTotalSoldSmsCount = intTotalSoldSmsCount + intCurrentUserSoldSmsCount;
                 int intCurrentUserUtilizedSmsCount = intCurrentUserSoldSmsCount - objUserDetails.SmsBalance;
                 intTotalUtilizedSmsCount += intCurrentUserUtilizedSmsCount;
                 intActivePacksCount += getUserActiveSMSPacksCount(objUserDetails, intCurrentUserUtilizedSmsCount);           
                 int intTotalCountPackPurchased = packPurchased(objUserDetails);
                out.print("<tr><td>");
                out.print(objUserDetails.UserId);
                out.print("</td><td>Rs.");
                out.print(intTotalCountPackPurchased);
                out.print("</td><td>");
                out.print(intCurrentUserUtilizedSmsCount);
                out.print("</td><td>");
                out.print(objUserDetails.SmsBalance);
                out.print("</td>");
                boolean newFlag=NewUser(objUserDetails);
                if(newFlag==true)
                     out.print("<td>Yes</td></tr>");
                else
                     out.print("<td>No</td></tr>");
               }               //End while
               out.println("</table>");
         }     

  • Generating email content through IDS

    Hi,
    We are at the early stages of a project involving Documaker Server and IDS. We already have a SOA setup in place and the tandem Documaker / IDS is already generating PDF documents on demand when requested by an in-house web service.
    We want to build another service that would call on IDS to generate content that could be used to create the body of an email message. We do not want to generate a PDF to be attached to an email, we want to generate the actual content of the message. The Documaker / IDS generated content would be returned to the calling service, same as we currently do with the PDF files.
    From what I gathered, I seem to have 3 options: HTML, RTF and EPT. I'm tempted to discard the EPT print driver as it seems to expect to handle the actual emailling of the message, and that is not what we want.
    Has anyone built a similar service? Any recommendations, hints, tips ?
    Thanks,
    Gaétan

    Hi,
      Please verify... you want to create the content for the email message, but not generate the actual email?  Or you want to generate the email, but not delivery it?  If you generate either, where would you want to 'place it' before you picked it up for delivery via some other email process.
    And...if that is correct, why not just let Documaker deliver the email?
    -DA

  • Problem using XSLT & HTML Tags

    Hi all,
    I'm newbie using XML and XSL and i'm facing a problem that i would need some help.
    I wrote a XML using servlet that use a XSL and transform it in a HTML output. So everything seems to work fine but when i try to use HTML tags inside my XSL it is not executed. it looks like below viewing by the browser IE6.0.
    - <html>
    - <body>
    <b>Sun Sep 14 12:27:09 BRT 2003</b>
    <i>Hello World</i>
    </body>
    </html>
    The fact is that i want my HTML tags to be executed by the XSl file and do not simple show the tags. Can someone help me? I would appreciate any help since i've been spending long time with that without any answer.
    Thanks and Regards
    Fabio

    following below the code that generate the XML. I still need help.
    I hope someone can help me in this issue
    The servlet that generate the XML.
    response.setContentType("text/xml");
    String Xml = "";
    Xml = Xml + "<?xml version=\"1.0\"?>";
    Xml = Xml + "<?xml-stylesheet href=\"/XslGravaCrit.xsl\" type=\"text/xsl\"?>";
    Xml = Xml + "<!-- Here is a sample XML file -->";
    Xml = Xml + "<page>";
    Xml = Xml + "<title>Test Page</title>";
    Xml = Xml + "<content>";
    Xml = Xml + "<paragraph>What you see is what you get!</paragraph>";
    Xml = Xml + "</content>";
    Xml = Xml + "</page>";
    try{
    TransformerFactory tFactory = TransformerFactory.newInstance();
    byte[] arr=Xml.getBytes();
    ByteArrayInputStream bytes=new ByteArrayInputStream(arr);
    Source xsl=new StreamSource("../XslGravaCrit.xsl");
    Templates template=tFactory.newTemplates(xsl);
    Transformer transformer = template.newTransformer();
    transformer.transform(new StreamSource(bytes), new StreamResult(response.getWriter()));
    }catch(Exception e){
    System.out.println("Excecao 100: " + e.getMessage() + e.getLocalizedMessage());
    The XSL XslGravaCrit.xsl
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"
    version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:template match="page">
    <html>
    <body><b>
    <xsl:value-of select="java:java.util.Date.new()"/>
         </b>
    <xsl:for-each select="/page">
    <xsl:sort select="paragraph"/>
    <xsl:value-of select="paragraph"/>
    </xsl:for-each>
    <i>Hello World</i>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

  • AIA Error Notification Format : HTML Tags

    Hi All,
    I am trying to customize the AIA Error notifications in AIAEHNotification.xml file to include the html tags such as &lt;font color="blue"&gt; etc. to change the look of the error message. But the same is not getting reflected in the error emails I receive.
    I'm sure the file AIAEHNotification.xml is getting updated as I can see my updated content every time but not html formatted in any case.
    Does default AIA Error handler support HTML tags inside the email body message or it just uses &lt;pre&gt; by default before sending the notification?
    AIA 3.0
    SOA Suite 11.1.1.3
    Regards,
    Neeraj sehgal

    Neeraj,
    html tags are not supported in the AIA EH notification framework as of now and I am not aware of any plans to support this in any of the next releases.
    Gerhard

  • Issue with HTML tags visible in Outlook emails

    Hi everyone, I'm having an issue with a website I'm working on.
    On our site, we have a page that generates emails after certain events occur. These are sent to a forwarding address on our mail server, which is then sent to several users on our mail server. These users have their accounts set up in Outlook (one in 2007,
    one in Mac 2011).
    We're are having an issue where these emails are displaying in Outlook with all of the HTML tags in the email visible. One of the users spoke to Microsoft support, and they remoted in and went through their Outlook settings and were not able to find any issues
    there.
    This issue is not global exactly. When one of the users added their email to their iPhone, the email displayed correctly. We added a Gmail account and my work account (which I also access through Outlook) to the forwarding list, and it displayed correctly in
    both. When we view these emails in the server's webmail client, the emails display fine. The issue seems to be with some discrepancy between Outlook and our email server.
    I spoke to our webhost about the issue, and they swore up and down the issue had nothing to do with them, and that it had to be an Outlook issue. I've had several professional web developers analyze the code that creates these emails, and they found nothing
    wrong with it. Something that several of my colleagues and our webhost suggested is that the issue could be with the email headers. This is the header for the email, as viewed through Outlook:
    Return-Path: <[email protected]>
    X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on clubcrown.com
    X-Spam-Level: *
    X-Spam-Status: No, score=1.5 required=7.0 tests=HTML_MESSAGE,MIME_HTML_ONLY,
    NO_DNS_FOR_FROM,NO_RELAYS autolearn=no version=3.3.1
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: by x.com (Postfix, from userid 30)
    id 50F7123D9E; Tue, 11 Feb 2014 14:20:00 -0500 (EST)
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: by x.com (Postfix, from userid 10000)
    id EC28323DA2; Tue, 11 Feb 2014 14:19:58 -0500 (EST)
    To: [email protected]
    Subject: A wholesale order has been placed
    X-PHP-Originating-Script: 10000:thanks.php
    MIME-Version: 1.0
    Any help would be greatly appreciated. Let me know if more information is needed. Thank you.

    Glad to hear that you have found the solution. And thank you for sharing the solution here, it will be helpful to other community members who have same questions.
    Cheers,
    Steve Fan
    TechNet Community Support

Maybe you are looking for