Convert template into html

Hi
Is it possible to simply convert a template back into html
and so get rid of all "not editable regions". In one of my
templates I have problems with not being able to make an header
editable again.
Thanks.
Sarosa

This template is a mess.
You have two editable regions named head -
<!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable --><!--
InstanceBegin template="home.dwt"
codeOutsideHTMLIsLocked="false" --><
and
<!-- InstanceBeginEditable name="head" --><!--
InstanceEndEditable --><title>Badrane
Tours</title>
In addition, if you REALLY pasted in the whole page's code,
there is no
doctype, no <html>, no <head>, and no
<body> tag.
I'm guessing DW complains quite a bit when you try to do
anything with this
template.
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
==================
"Sarosa" <[email protected]> wrote in
message
news:[email protected]...
> The code is attached. Thanks.
>
> <!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable --><!--
> InstanceBegin template="home.dwt"
> codeOutsideHTMLIsLocked="false" --><style
> type="text/css">
> <!--
> body,td,th {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 12px;
> color: #333333;
> }
> body {
> background-color: #000000;
> }
> .hairline_top_r_l {
> border-top-width: thin;
> border-right-width: thin;
> border-bottom-width: thin;
> border-left-width: thin;
> border-top-style: solid;
> border-right-style: solid;
> border-bottom-style: solid;
> border-left-style: solid;
> border-top-color: #CC6600;
> border-right-color: #CC6600;
> border-left-color: #CC6600;
> }
> .hairline_top_bot_r_l {
> border: thin solid #C46200;
> }
> -->
> </style>
> <link href="../website/website/styles/main.css"
rel="stylesheet"
> type="text/css" />
> <script src="../scripts/AC_RunActiveContent.js"
> type="text/javascript"></script>
> <!-- InstanceBeginEditable name="head" --><!--
InstanceEndEditable -->
> <title>Badrane Tours</title>
> <link href="../website/styles/main.css"
rel="stylesheet" type="text/css">
> <br />
> <table width="800" height="330" align="center"
cellpadding="0"
> cellspacing="0"
> bordercolor="#000000">
> <tr>
> <td height="52" bordercolor="#000000"
class="hairline"><div
> align="center"
> class="hairline_top_r_l">
> <script type="text/javascript">
> AC_FL_RunContent(
> 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>
version=9,0,28,0','width','800','height','150','src','../website/swf/header','qu
> ality','high','pluginspage','
http://www.adobe.com/shockwave/download/download.cg
>
i?P1_Prod_Version=ShockwaveFlash','bgcolor','#000000','movie','../website/swf/he
> ader' ); //end AC code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=9,0,28,0" width="800" height="150">
> <param name="movie"
value="../website/swf/header.swf">
> <param name="quality" value="high"><param
name="BGCOLOR"
> value="#000000">
> <embed src="../website/swf/header.swf" width="800"
height="150"
> quality="high"
> pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
> n=ShockwaveFlash" type="application/x-shockwave-flash"
> bgcolor="#000000"></embed>
> </object>
> </noscript></div></td>
> </tr>
> <tr class="hairline_top_r_l">
> <td height="223" bordercolor="#000000"
class="hairline_top_r_l"><!--
> InstanceBeginEditable name="body" -->
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <p> </p>
> <!-- InstanceEndEditable --></td>
> </tr>
> <tr class="hairline_top_bot_r_l">
> <td height="20" bordercolor="#000000"
> class="hairline_top_bot_r_l"><script
> type="text/javascript">
> AC_FL_RunContent(
> 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>
version=9,0,28,0','width','800','height','20','src','../website/swf/menu','quali
> ty','high','pluginspage','
http://www.adobe.com/shockwave/download/download.cgi?P
>
1_Prod_Version=ShockwaveFlash','bgcolor','#000000','movie','../website/swf/menu'
> ); //end AC code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=9,0,28,0" width="800" height="20">
> <param name="movie" value="../website/swf/menu.swf"
/>
> <param name="quality" value="high" /><param
name="BGCOLOR"
> value="#000000">
> <embed src="../website/swf/menu.swf" width="800"
height="20"
> quality="high"
> pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
> n=ShockwaveFlash" type="application/x-shockwave-flash"
> bgcolor="#000000"></embed>
> </object></noscript></td>
> </tr>
> </table>
> <!-- InstanceEnd -->
>

Similar Messages

  • How to convert pdf into html?

    Hi,
    I am an amateur ASP developer. I want to create a pdf viewer like http://www.scribd.com. But I want to convert PDF into HTML on the server and then display it to the client. I want to convert into HTML so that it can be browsed from mobile devices also. And I need the text to be searched client side.
    Can anyone help me? Give me any direction or hint on how to achieve this or where to start? Have anyone done this before?

    Irosenth,
    Thank you very much for your kind reply.
    Well, can you give me a clue from where to start? Is there any server component? or can ASP.NET help? Or from where I can get some information on converting PDF into html on server side?
    Look, everybody was a starter sometime. I want to do this.

  • Convert word into html in unix environment

    We are in the process of developing a coldfusion web
    application which allows the users to upload resumes in word
    format. Once the word document is uploaded we need to convert the
    word document into html on the fly. We know it can be accomplished
    using com object in the windows platform. But ours is a unix
    environment. We need some coldfusion coding which can convert the
    uploaded word file into html. Please take note coldfusion server
    runs on unix platform in our case.

    For step 3 call a 3rd party component such as Aspose.Words to
    handle converting test.doc to test.html. I'd recommend wrapping
    this logic inside a CFC.
    For example using Aspose.Words java object appears to be as
    easy as the Java code:
    Document doc = new Document(getMyDir() + "Document.doc");
    doc.save(getMyDir() + "Document.ConvertToHtml Out.html",
    SaveFormat.HTML);
    Note: I've used the .NET version of Aspose.Words, not the
    Java version, but I've been pleased with the product.
    Aspose.Words formats supported
    http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/ com/aspose/words/saveformat.html
    You might also investigate Apache POI
    http://poi.apache.org/

  • How to convert Templates into tables under Smartforms

    Hi Gurus,
        I need to print internal table data onto a Template. But I'm wondering as how to convert a Template into Table. It is very urgent.
       Answers are rewardable.
    -Syed.

    Hi ,
    Why do you wantto use templates as table control .   
    You  should use table control  in place of template  to dipslay contents of an internal table .
    To use table control as template  put template inside a loop  . Im not sure it works or not .
    Regards

  • Converting .fmb into HTML template

    I am considering moving from oracle form and report builder to the APEX. Is there any ways that we could convert the existing .fmb file to html template, other than making a new one?

    Hello,
    Oracle is working on something like that, but till now it's not yet possible to do that in an automated way.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Error in converting Spool to HTML format.

    Hi Gurus,
    I am reading SPool and converting that into HTML formt. Please do find below code for the same.
    Submit report to convert the spool to HTML format
      SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN
      WITH rqident = p_spoolno.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = gt_listobj
        EXCEPTIONS
          not_found  = 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.
    Convert the spool to HTML format
      CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
       EXPORTING
       REPORT_NAME         =
         template_name       = 'WEBREPORTING_REPORT'
        TABLES
          html                = p_html_tab
          listobject          = gt_listobj.
    >>>>>>>>>>>>>>>>>>>
    And i send p_html_tab as attachement to email.
    When I opened the attachement, i can view only half page in htm.
    How can i get the full page in htm.

    First convert the spool to internal table by using FM
    RSPO_RETURN_ABAP_SPOOLJOB
    Next from internal table to HTML....
    Link: /people/rammanohar.tiwari/blog/2006/01/29/abap-utility-print-screen-to-html
    or try the following
    Please try the follwoing:
    1. define HTML internal table with ref to type W3HTML
    2. download it as BIN type and give total lenght of the strings as a parameter in the down load.
    See the code extract below:
    describe table html lines entries.
    read table html into w_html index entries.
    size = ( entries - 1 ) * 255 + strlen( w_html ).
    concatenate p_path file into file.
    call function 'WS_DOWNLOAD'
    exporting
    bin_filesize = size
    filename = file
    filetype = 'BIN'
    tables
    data_tab = html

  • Migrate WebDB reports into HTML DB

    Hi,
    We have a custom application Build on Oracle 8.0 and WebDb and we would like to migrate these webdb reports on to HTML DB on 10g database. So, my question is, can we re-create the webdb reports in html db or can we convert directly into html db. Also, is it easy task or difficult one? also would like to know any better solution for this?
    Could you please share your views on this.
    thx
    Veeresham

    Jeff - I don't understand any of that. There is an attribute of the authentication scheme, Invalid Session Page. Set that to the page ID of the desired login page. If that page has a login process (like that on page 101), then it may need to be changed to reference items on the actual login page instead of items on page 101, e.g., P101_USERNAME. And don't put branches on the login page that are intended to fire after the authentication takes place. The login API does a redirect for you based on the after-login page argument in the login process on the page.
    Scott

  • I am having problem in Converting .psd file into HTML site.

    here is the screen shot of the PSD which i converted into HTML. It is done with the help of Slice select too. and i got this kind of error in output. so i want a way by which i can transform my psd designs the same way they look in to working website. the template goes other places

    Just wanted to correct something you said, simply because beginners are reading these forums and may get confused.
    You can not convert any image into an html file. An html file is simply a text file that uses tags that can point to an image file.
    Web browsers normally accept jpg, png, and gif files, so you can convert your psd file into one of those three formats and let the html file point to it.
    Here are some sites for learning about html and css. Its the latter that can help with your positioning issue.
    http://www.htmlbasix.com/
    http://www.htmlgoodies.com/
    http://www.thesitewizard.com/
    http://www.lissaexplains.com/
    http://www.w3.org/MarkUp/html-spec/html-spec_toc.html < - - - The Official source
    http://www.yourhtmlsource.com/
    http://msdn2.microsoft.com/en-us/library/aa286532.aspx Microsoft’s info
    w3.org also has the official specs for css.

  • How to take data from HTML Template into BSP Variable?

    hi all,
                can we take the data from the input field of HTML Template and collect into BSP variable? i have the shown the HTML Template into BSP page by passing the url in <IFRAME> tag now i have to take the data form the into field of HTML Template and save it back to the BSP table onclicking the Save button of BSP Page. please help me out thanks in advance.
    Thanks & Regards,
    Amol

    Hi Amol,
    This is very simple....
    In the onInputProcessing event of the page use the following code to read data from the InputField into an ABAP variable...
    Then you can use it at will..!
    Code is :
    data : event       TYPE REF TO if_htmlb_data,
           but_event   TYPE REF TO cl_htmlb_event_button.
    event = cl_htmlb_manager=>get_event( request ).
    IF event->EVENT_NAME = 'button' and event->EVENT_TYPE = 'click'.
          but_event ?= event.
          CASE event->EVENT_ID.
            when 'your_button_id'.
              data : lw_inf type ref to cl_htmlb_inputfield.
                 lw_inf ?= cl_htmlb_manager=>get_data(
                                request = runtime->server->request
                                name    = 'inputField'
                                id      = 'your_inputField_id'  ).
              if lw_inf->value is not initial.
                lw_variable = lw_inf->value.
              endif.
         ENDCASE.
    ENDIF.

  • Is it possible to convert PDF file into HTML

    Dear friends
    Is it possible to convert PDF file into HTML. I have few hundread PDF files i like to convert this files into HTML. I hope it can be done through Java but i don't know how to start this coding. anybody can give me a brief idea to go ahead.

    Why do you want to do this yourself? I quick search on Google showed several utilities to do this, some freeware, some commercial.

  • I have a number of pages with html extension in different files. Is it possible to merge them into one file? Is it possible to convert them into another file type such as PDF, MOBI, or EPUB? Thanks

    While downloading an eBook from internet, I found a book in a folder containing around 123 files, which is equivalent to the number of pages of the book.
    My interest is to bring them together in one file so that I can read it at a time. As the interface is not comfortable with html, I also like to convert it into another more suitable file format.

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • XSLT to convert CALS tables into html?

    This may be the wrong forum to post this, but I don't know
    where else I can, so I would very much appreciate if anyone
    can suggest where I can find such information.
    I need to write XSLT code that will transform
    CALS tables that InDesign exports in XML into HTML.
    (I can't simply use the xhtml export feature. I need to
    do the transformation from XML to HTML.)
    For starters, what would be the XSLT code that I would need to convert
      aaaa
      bbbb
      cccc
      dddd
      eeee
      ffff
    into
    <table>
    <tbody>
    <tr>
    <td>
    <p class="pstyle_cell">aaaa</p></td>
    <td>
    <p class="pstyle_cell">bbbb</p></td>
    </tr>
    <tr>
    <td>
    <p class="pstyle_cell">cccc</p></td>
    <td>
    <p class="pstyle_cell">dddd</p></td>
    </tr>
    <tr>
    <td>
    <p class="pstyle_cell">eeee</p></td>
    <td>
    <p class="pstyle_cell">ffff</p></td>
    </tr>
    </tbody>
    The thing that I am having the most trouble with
    is the extraction of the number of rows and columns from
    the xml file and creating the appropriate "for" loop
    that will get the <tr></tr> tags in the right places in the HTML.
    Thanks in advance.
    Tak Osato

    Not really. It's never a good idea to consider the actual web page creation as an afterthought to the graphical design. In fact many times it's just simpler to start the web page as such and only add graphical fancy if and when needed selectively. Anyway, there are a few sites that offer PSD to HTML conversion, either automatic or as a paid service, but it will never be perfect. It's the same why a CSS or HTML file created using Save for Web always was and at best always can be a crude start. And in light of all the above, of course PS (or Illustrator or InDesign) are not web design tools, not even for the graphical aspects. Rather spend your time with Muse, Fireworks, Edge, Dreamweaver or one of the gigazillion free tools out there more suitably aimed at web stuff than PS ever could...
    Mylenium

  • How to Export InDesign Interactivities into HTML 5 without converting it through any tool?

    I created some simple InDesign Interactivities like Drag and Drop, Text Input Fields, Drawing, Multiple check box, Radio selection, Drop Down etc.
    When i export that interactivities in HTML, It will give me output of HTML page with interactivity in flash file. I expect that interactivities JavaScripts, CSS files. I also refer other suggestions on Adobe InDesign forum like below
    1. http://forums.adobe.com/message/4962514
    2. http://forums.adobe.com/message/4447318#4447318
    3. http://forums.adobe.com/message/4907133#4907133
    They suggested Export interactivities into .fla/.swf and Convert it into javascript and Css using some online tolls like wallaby or Swiffy.
    Is there any direct way available in InDesign that will give me proper HTML output with JavaScript and CSS that also compatible with devices like iPad, iPhone, Smartphones and other mobile devices?

    They suggested Export interactivities into .fla/.swf and Convert it into javascript and Css using some online tolls like wallaby or Swiffy.
    Last I checked Swiffy and Wallaby have limited ActionScript capabilities—they work best with simple timeline animations. I doubt you'd have much sucess converting ID .swf exports.

  • Converting Flash Catalyst FXP File into HTML

    Hey there Adobe Community,
    We have a client who's website we built quite a while ago in Flash Catalyst, the problem is as many of you know that Flash Catalyst has been discontinued.
    Does anyone know of any way to get our FXP File converted into HTML?
    If you have a solution please let me know.
    Thankyou Adobe Community!
    James

    I am afraid you are just going to have to roll up your sleeves and rebuild it from scratch. You might look at Adobe' Edge Animate tool to assist with some of the animation that you may have within you FC project.
    Good luck,
    Chris Griffith

  • Converting XML and XSL into HTML

    Hello!
    I'm designing a servlet class that merges an xml file and xsl file into html that will be sent to the client. But I don't understand how the (sparsely documented) javax.xml.transform.dom package works. An exception is generated for a missing "version" tag, when I've included one that has worked on client-side xml/xsl pages before. If it matters, I'm using Apache Tomcat/JDK 1.4.
    Here's the code:package mypackage.servlet.xml;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class XML2HTMLServlet extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws IOException, ServletException {
              response.setContentType("text/html");
              PrintWriter writer = response.getWriter();
              try {
                   openFile("D:/Webdev/xml2html/data.xml", "D:/Webdev/xml2html/style.xsl", writer);
              } catch (Exception e) {
                   e.printStackTrace(writer);
         private void openFile(String xmlPath, String xslPath, PrintWriter writer)
          throws IOException, ParserConfigurationException, SAXException,
          TransformerConfigurationException, TransformerException {
              File xmlFile = new File(xmlPath);
              File xslFile = new File(xslPath);
              TransformerFactory tFact = TransformerFactory.newInstance();
              DocumentBuilderFactory dbFact = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = dbFact.newDocumentBuilder();
              Document xmlDoc = builder.parse(xmlFile);
              Document xslDoc = builder.parse(xslFile);
              Node xmlDocNode = (Node)xmlDoc;
              Node xslDocNode = (Node)xslDoc;
              DOMSource xmlSrc = new DOMSource(xmlDocNode);
              DOMSource xslSrc = new DOMSource(xslDocNode);
              DOMResult htmlResult = new DOMResult();
              Transformer transformer = tFact.newTransformer(xslSrc);  // the exception occurs here!
    When it runs, it complains:
    javax.xml.transform.TransformerConfigurationException:
    javax.xml.transform.TransformerConfigurationException:
    javax.xml.transform.TransformerException:
    javax.xml.transform.TransformerException: stylesheet requires attribute: version at
    org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:767) at
    mypackage.servlet.xml.XML2HTMLServlet.openFile(XML2HTMLServlet.java:49) at
    ...etc...etc...
    data.xml contains:
    <?xml version="1.0"?>
    <document type="lecture">
         <title>Test Data</title>
         <section>
              <name>A New Section</name>
         </section>
    </document>
    style.xsl contains:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
         <html>
              <head>
                   <title><xsl:value-of select="document/title"/></title>
              </head>
              <body>
                   <xsl:apply-templates select="document/section"/>
              </body>
         </html>
    </xsl:template>
    <xsl:template match="section">
         <div><i>Section</i><br/><xsl:value-of select="name"/></div>
    </xsl:template>
    </xsl:stylesheet>I'm not sure the method calls above are what I want, so here's the client-side equivalent in Internet Explorer 5.0:
    function createStyledXMLDocument(xmlUrl, xslUrl) {
         var xmlDocument = new ActiveXObject("Microsoft.XMLDOM");
         xmlDocument.load(xmlUrl);
         var xslDocument = new ActiveXObject("Microsoft.XMLDOM");
         xslDocument.load(xslUrl);
         return xmlDocument.transformNode(xslDocument);
    }Any help would be greatly appreciated.

    Hi!
    I found the immediate answer with
    dbFact.setNamespaceAware(true);As for parser, I'm just using the default JDK install. But I'd like to hear more on Xalan. Is it independent open source? How does Xalan compare to whatever is default in JDK?
    Thanks

Maybe you are looking for

  • Disk Utility says no problems but Diskwarrior disagrees

    Need some advice. I ran Disk Utility yesterday to verify my drives before upgrading to 10.4.4 on my Dual 2GHz. It came up with some errors but said it couldn't fix them. Went to Diskwarrior which also said it couldn't fix it. Did a safe boot which is

  • Print Spooler does not work after Win 8.1 install

    I upgraded several computers to Win 8.1.  Most are operating normally and do not have this problem.  This is relevant to show that it is not a printer hardware or compatibility problem.  On one computer, the print function is not working.  I've tried

  • Batch/Actions Like Option In Dreamweaver?

    I have a very standard photo gallery layout. The user clicks on a thumbnail and it send them to a page that has a large version of the image that is the format of my webpage with a header, footer and Discus box. I use a template that I made for each

  • How to open multiple worksheet by redirecting discoverer plus URL ?

    Hi, Version : Discoverer Plus 11g I am able to open discoverer report with report workbook and worksheet from my UI screen by redirecting its URL. This is done by providing URL input parameter opendbid (workbook id) & sheetid (worksheet id of the wor

  • Addrow  problem in "Define Serial Numbers" form

    I have an item which is maintained by series nos at all transactions. i have to create series nos for that item for all documents. I have developed a specific logic for series nos for populating the nos in the "Define Serial Numbers" form matrix. Whe