Create file from template format problem

Hi
I have a template (index.dwt.asp). In the body tag is
<body id="<% =xid %>" class="<% =bodyclass %>" onload="SwitchMenu('<% =loadm %>')">
when I create a new from template it writes the code with a capital L in the onload function which will not validate as xhtml strict.
<body id="<% =xid %>" class="<% =bodyclass %>" onLoad="SwitchMenu('<% =loadm %>')">
Is there any thing that can be done to stop this.
Thanks
Paul M

Also, just so you'll know, I cannot reproduce this in CS4.  If I create a template -
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body id="<% =xid %>" class="<% =bodyclass %>" onload="SwitchMenu('<% =loadm %>')">
<!-- TemplateBeginEditable name="EditRegion3" -->EditRegion3<!-- TemplateEndEditable -->
</body>
</html>
and spawn a child from it, here is what I get -
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><!-- InstanceBegin template="/Templates/test-onload.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body id="<% =xid %>" class="<% =bodyclass %>" onload="SwitchMenu('<% =loadm %>')">
<!-- InstanceBeginEditable name="EditRegion3" -->EditRegion3<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>

Similar Messages

  • Create files from template using flienames in a text document.

    Hi
    I have been trying to wrap my head around this all evening and not gotten very far.  I have a template Word document that I need to copy and rename with pupils names.  I have the text document (.txt), with all the pupil names seperated into paragraphs.  I have to do this every term and end up typing all 200 pupils names in by hand.  I know there is a way do this with applescripts, but its not going well. Any and all help would be appreciated.
    Thanks!

    That's pretty easy to do. This should get you close:
    set the_template_file to (choose file with prompt "Select the template file:")
    set the_name_list_file to (choose file with prompt "Select the file containing the names:")
    set the_names_list to paragraphs of (read the_name_list_file)
    tell application "Finder"
              repeat with each_name in the_names_list
                        set new_file to duplicate the_template_file
                        set name of new_file to each_name & ".docx"
              end repeat
    end tell
    The script will first ask you for the template file, then ask you for the file that contains the list of names.
    It then loops through the list of names, for each name it duplicates the template file, then renames it to match the contents of the file.
    There's no error checking here, so you might want to pad this script to catch errors, but it should be functional.

  • Can't create VM from template on iSCSI

    Hello,
    I'm trying to create new VM from original Oracle template "OVM_EL5U3_X86_64_PVM_4GB" on iSCSI device without a success.
    Steps to reproduce:
    1) /OVS is mounted as iSCSI block device
    2) Original Oracle template is copied into /OVS/seed_pool/OVM_EL5U3_X86_64_PVM_4GB
    3) Oracle VM Manager - Import template (no problem)
    4) Oracle VM Manager - Create VM from template
    Result: Files are copied into running_pool, vm.cfg is updated, new VM is visible in VM Manager but with this message:
    failed: <Exception: Error updating the image.> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 471, in config_vm raise Exception("Error updating the image.")
    5) Oracle VM Manager - Start new VM
    Result:
    Status in VM is Running
    I can connect using VNC console
    But the VM is constantly rebooting with these messages on the console:
    Registering block device major 202
    xvda: xvda1 xvda2 xvda3
    xvda: p2 exceeds device capacity
    xvda: p3 exceeds device capacity
    Waiting for driver initialization.
    xvda: rw=0, want=101530648, limit-12707414
    attemp to access beyond end of device
    switchroot: mount failed: No such file or directory
    Kernel panic - not syncing: Attempted to kill init!
    Looks like there is a problem with partition sizes within the VM image file (xvda: p2 exceeds device capacity)
    I've tried to mount iSCSI formated with ocsf2 and ext3 - I'm getting the same error.
    However there is no problem when I mount /OVS as NFS or local drive and repeat the steps above.
    Any suggestion would be highly appreciated,
    Honza

    It's all sorted now.
    What I've learnt: OVS/Xen hypervisor doesn't seem to handle 4kB iSCSI block sizes.
    I had to change it to 512 bytes (configuration on the iSCSI storage - nothing on the Oracle VM side) and re-create all volumes.
    Just in case you experience something similar.
    Honza
    Edited by: Honza on Jul 21, 2009 3:00 PM

  • Can't create VM from template

    Hello,
    I'm getting this error when creating VM from template:
    failed: <Exception: Error updating the image.> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 471, in config_vm raise Exception("Error updating the image.")
    The VM is actually created despite this message bot when I try to power it up I'm getting another error:
    failed:<Exception: ['xm', 'list', '478_CITConnect_Internal_TEST']=>Error: Domain '478_CITConnect_Internal_TEST' does not exist. > StackTrace: File "/opt/ovs-agent-2.2/OVSXXenStore.py", line 192, in xen_get_vnc_port vm_id = xen_get_vm_id(vm_path) File "/opt/ovs-agent-2.2/OVSXXenStore.py", line 34, in xen_get_vm_id stdout = run_cmd(args = ["xm", "list", vm_name]) File "/opt/ovs-agent-2.2/OVSCommons.py", line 98, in run_cmd raise Exception('%s=>%s' % (cmdlist, p.childerr.read()))
    The template was copied from another VM pool (where it works fine, version 2.1.1) to a newly configured VM Server (2.1.5).
    The new server is configured for HA (shared storage) and I was able to create VM from ISO without any problem there.
    The template was created from existing VM (Oracle EL4 PV) running on the "old" server.
    Any ideas where I should look into?
    Thanks
    Jan
    Edited by: Honza on Jul 9, 2009 10:48 AM

    It's all sorted now.
    What I've learnt: OVS/Xen hypervisor doesn't seem to handle 4kB iSCSI block sizes.
    I had to change it to 512 bytes (configuration on the iSCSI storage - nothing on the Oracle VM side) and re-create all volumes.
    Just in case you experience something similar...
    Honza

  • BAPI/FM to Create Projects from Templates

    Is there any BAPI/FM that can create Operative Project Structures referring the Standard WBS including all objects i.e, WBS,N/W,Activities,Milestone of standard project?
    If not, what could be the work around?
    Regards
    Sreenivas

    Hi Robin !
            I have the same issue here, to create projects from a template, using a Function Module to do that, and I tryed to use the FM CJWB_PROJECT_COPY as you suggested, and I achieved to create project from template but, for any reason not known by me, the project is created without status object, so I can´t open it on any transaction(CJ02/CJ03/CJ20n...). I have tested it in SE37, using test sequences, so I call it and BAPI_TRANSACTION_COMMIT to save the data.
            To make the projects available to work, I needed to run a report named CNSTATUS as explained on SAP Note 170948.
            Do you know why using CJWB_PROJECT_COPY created the projects without status object assignment ? I could not find any documentation about this function, so maybe the problem can be caused by some wrong parameter that I was passed to it.
            Do you already used it ? If yes, can you send a sample code ?
            Thank you in advance, and best regards !
            Wilson

  • InDesign CS5- where is create new from template?

    Hi,
    I was looking for creating something new from one of the default templates of CS5, like I've done in the past with CS3 and CS4.  However I find that there doesn't seem to be an option to create new from template.
    Am I completely missing where it is?  Have they called it something else?  Have they removed the default ones completely from InDesign?

    I should perhaps amend that to don't waste time with a template for multiple labels on a sheet. If you see something that works for you as far as basic layout, make a one-up lable from it (cupy the elements from a single label into a new file sized for only one label). Get a sheet full of blank labels, place that file in the upper left position on your larger sheet layout, then use Edit >Step and Repeat... to make the grid. This is much more efficient as it allows you to edit the entire sheet at one time by editing the single label file.
    If you need to d a data merge, you can do nearly the same thing -- put a single blank label layout in the upper left position, add your merge field placeholders in that one label, and run the merge. DO NOT put anything beyond the single label layout on the sheet for a Data Merge job. Also, note that there is a bug in CS5/5.5 that will give you an incorrect multiple records merge if you try to preview. If you preview you must use Undo before the merge to go back to the pre-preview state.

  • Files from template not copy img background property

    i have a simple(single) template with two bars(vertical and horizontal, each one has a specific png backgorund image set in .twoColHybLtHdr #header and #sidebar ) and a editable region in the middle of the page, so far i've built the entire site based on that template with no problems.
    today i'm doing some work, edited the templates links, updated all the pages, but when i try to generate a new file from template i encounter a completely black background, checking the css style shows that the background-image property ain't there anymore(if i try to add it it says that it's in a locked portion of the file thus the chnge will be discarded).
    i've tried downloading an old model and the resulting files are the same
    i'm attaching the model and a resulting page
    you can also see them online at: http://www.espiralcalipso.com.ar/error.html
    and a good one: http://www.espiralcalipso.com.ar/editorial.html
    any ideas are greatly appreciated.
    DW is CS4 10.0 b4117
    PD: i've noticed that this is EXACTLY my same problem: http://forums.adobe.com/message/2456171
    but only posted is a workaround.
    i've checked my site definition and the root folder is pointed to the file system root, the url is the correct one and it's relative to document

    That's pretty easy to do. This should get you close:
    set the_template_file to (choose file with prompt "Select the template file:")
    set the_name_list_file to (choose file with prompt "Select the file containing the names:")
    set the_names_list to paragraphs of (read the_name_list_file)
    tell application "Finder"
              repeat with each_name in the_names_list
                        set new_file to duplicate the_template_file
                        set name of new_file to each_name & ".docx"
              end repeat
    end tell
    The script will first ask you for the template file, then ask you for the file that contains the list of names.
    It then loops through the list of names, for each name it duplicates the template file, then renames it to match the contents of the file.
    There's no error checking here, so you might want to pad this script to catch errors, but it should be functional.

  • Remove Templates from Create Incident From Template Selection

    Originally all users had access to all of the templates created, however now that we have been using SCSM for a while the number of templates created has started to grow and make the Create Incident From Template Screen difficult to navigate.  I am
    trying to limit the number of templates each team sees based on security group, however when I uncheck the templates from the Form Templates section of the User Role, they continue to display for all users.  Is there somewhere else I have to go in and
    change this that I am missing?

    Hi,
    Take a look at this thread:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/d0b64ab8-ea5a-4426-968e-77675193473f/hiding-templates-from-console-users-while-still-effectively-using-the-end-user-role?forum=administration
    (By default the End User role has access to all templates, and the members of that role is Authenticated Users)
    Regards
    //Anders
    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se

  • Workflow - create document from template

    Hi,
    Could anyone tell me what could be the possible use of Create Document from Template step in workflow...

    Hi vijay,
    1)Open the PC application by choosing the entry Double-click to create in the Document templates tray by double-clicking or choose  in the step definition of the document generation.
    The PC application that you last used to create a template is opened in the Workflow Builder. The system fields and the container elements of the workflow container are offered for selection in the navigation area. They can be transferred into the template by double-clicking.
    You cannot use any multiline container elements in your template.
    All relationships created between container elements/system fields and the document template are displayed in the object area.
    It is not possible to insert system fields and container elements into all types of document template.
    2) If you want to create a document template of a different class, select  Change document class and choose the new type of document template.
    3) Select  to assign a name for the document template.
    4) Create the document template in the usual way in your PC application. You can use all the functions of the PC application.
    5) Insert container elements and/or system fields from the object area into your template by double-clicking. These fields are replaced with the content of the container elements/system fields at runtime.
    6) Select  to save your document template.
    Hope this helps u,
    Regards,
    Nagarajan.

  • ABAP class to create doc. from template

    Hi all,
    Does anybody know if is there any ABAP class which can call the "Create with template" functionality?
    The idea is to create an action associated with the Service Ticket, which will create a document from template (Content Management functionality) when the Service Ticket is closed.
    We could use SmartForms, but it seems to have some restrictions:
    . Template maintenance is not so user frindly (the content management templates can be created/mantained in MS Word)
    . The document is not stored within the Service Ticket context
    Kind regards,
    Dora

    Hi Lance,
    you are right. There's no "Create User from template" or "Copy User" Activity in the Integration pack for Active Directory in System Center SP1 or R2.
    Perhaps, you can use "Get User" to get some settings from the template and subscribe the results to "Create User" Activity.
    Regards,
    Stefan
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • How to recover my business files from a formatted removable drive?

    I need to recover my business files from my formatted drive accidentally. I know I am stupid. I am using Windows XP. It is a Toshiba 500GB external hard drive.
    Is there anyone that can help me to restore my files back? The inner files are really important to me. Help, please!

    Well! If you really know little about data recovery stuff, I think I could help.
    Actually, after you Google “data recovery tools” on the internet, you could see plenty of data recovery tools available online. Some of them are free, some of them are not. You should put much more attention to this point and make a wise
    decision according to your won needs.
    Here are some freeware for you:
    http://www.piriform.com/recuva
    http://www.formatrecovery.blogspot.com/2013/02/recover-data-after-formatting.html
    Here are some paid tools for you:
    http://www.techsupportalert.com/best-free-data-recovery-file-undelete-utility.htm
    You should read these articles to know more information about data recovery stuff and select a right one:
    http://en.wikipedia.org/wiki/Data_recovery
    http://en.wikipedia.org/wiki/List_of_data_recovery_software
    Thank you for your prompt replies. I will try your recommended tools latter. Thank you very much!!!!!

  • Integration pack to create user from template

    Does anybody know if the Orchestrator 2012 Sp1  active directory integration pack has a way to create user from a template?
    I believe there is a create user but not from a template.
    Thanks
    Lance
    Thanks Lance

    Hi Lance,
    you are right. There's no "Create User from template" or "Copy User" Activity in the Integration pack for Active Directory in System Center SP1 or R2.
    Perhaps, you can use "Get User" to get some settings from the template and subscribe the results to "Create User" Activity.
    Regards,
    Stefan
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • Converting  audio file from one format to another format

    Hi Friends,
    Is it possible to convert the audio file from one format to another format(*.mp3 to *.wav file and vice versa)?
    If so, please guide me on the same.
    Thanks in advance,
    Kavitha Anbazhagan

    It's been covered here already, but take a look here:
    Converting CDs to iTunes Audiobooks
    Just read the parts after the section on importing from CD.
    Regards.
    Message was edited by: Dave Sawyer

  • Automatically create new Excel file from template using data from a selected row in a separate Excel file

    I am fairly new to Macro and VBA in Excel. I am trying to reduce the amount of work involved in a task that is performed often in our office. Currently, the task involves using 2 separate Excel files. One file is a tracking sheet and the second is the document
    that gets sent out to the client. The second document has all the same information that is inserted into the tracking sheet. What I would like to do is have the information that is in one row on the tracking sheet populate into a new excel file that is created
    automatically from an existing template.
    I have been able to make this partially work. What I have been able to achieve is have the cell that is selected in the tracking sheet (the description field) copy into the new file that is created from the template that is on our server.
    Sub NewRFI()
    ' NewRFI Macro
        MsgBox Selection.Address(ReferenceStyle:=xlA1, _
                               RowAbsolute:=False, ColumnAbsolute:=False)
        Selection.Copy
        Workbooks.Add Template:= _
            "template file path goes here"
        Range("C14").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=False
        Range("C14").Select
        Application.CutCopyMode = False
    End Sub
    What I need to do is get the rest of the information from that same row in the tracking sheet to copy to the new file as well. The other information includes the document number (one cell to the left of the selected cell), who it is from (one cell to the
    right of the selected cell), and the date (two cells to the right of the selected cell). As stated, this information is all in the same row on the tracking sheet. Each piece of information needs to be copied to a certain cell in the new file and I do not want
    the source formatting to be copied to the new file.
    Ideally, I would like it to operate like so: select the first cell in the row (in this case would be the document number field). Then click a button to run the macro that will then copy the information from that row in the tracking sheet to specific cells
    in the new file that is created from the template.
    This process will save us from having to either manually copy and paste the information into the new file or re-type the same information that is already in the tracking sheet.
    This is probably a simple thing to do but it would be great if anybody had some insight on this issue. Thanks in advance!

    Try code like the following. You will have to change the target cells (D25, F1 and H4) to the ones you want, I just used some arbitrary cells as example.
    Sub NewRFI()
    Dim rngCell As Range
    Set rngCell = ActiveCell
    MsgBox Selection.Address(ReferenceStyle:=xlA1, _
    RowAbsolute:=False, ColumnAbsolute:=False)
    Workbooks.Add Template:="template file path goes here"
    Range("C14").Value = rngCell.Value
    ' Change the target cells as needed
    Range("D25").Value = rngCell.Offset(0, -1).Value
    Range("F1").Value = rngCell.Offset(0, 1).Value
    Range("H4").Value = rngCell.Offset(0, 2).Value
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Problems when Creating Pages from Templates in Dreamweaver 8

    When creating new pages from templates in Dreamweaver 8(Ver
    8.0.2). The full path for images is not created
    i.e. in template the code is <img src="main_page_logo.png"
    width="814" height="172" longdesc="Main Page Logo" />
    In the new file the code should be :-
    <img src="../../Templates/main_page_logo.png" width="814"
    height="172" longdesc="Main Page Logo" />
    but only :-
    <img src="main_page_logo.png" width="814" height="172"
    longdesc="Main Page Logo" /> is in the code.
    but this does work in Version 8.0.
    Does anyone know of a setting or fix for this problem

    > Does anyone know of a setting or fix for this problem
    It was regarded as a bug in previous versions, and was fixed
    in the 8.0.2
    release. In normal circumstances, ALL links in a template
    file must be
    relative to the template document, not relative to where you
    intend to save
    the child pages. Thus, there would be no way to have a link
    in your
    template document like the first one you show, e.g.,
    <img src="whatever.png"....
    *unless* the file was actually in the Templates folder (a bad
    idea).
    In 8.0.2, you can set your PREFERENCES for the Templates
    category to NOT
    MANAGE relative links. Be aware that this may have unintended
    consequences
    for you - specifically regarding other relative links in your
    site.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "pgs_it" <[email protected]> wrote in
    message
    news:eivj88$361$[email protected]..
    > When creating new pages from templates in Dreamweaver
    8(Ver 8.0.2). The
    > full
    > path for images is not created
    > i.e. in template the code is <img
    src="main_page_logo.png" width="814"
    > height="172" longdesc="Main Page Logo" />
    > In the new file the code should be :-
    > <img src="../../Templates/main_page_logo.png"
    width="814" height="172"
    > longdesc="Main Page Logo" />
    > but only :-
    > <img src="main_page_logo.png" width="814"
    height="172" longdesc="Main Page
    > Logo" /> is in the code.
    > but this does work in Version 8.0.
    > Does anyone know of a setting or fix for this problem
    >
    >
    >

Maybe you are looking for

  • How does the choice of folio name affect publishing

    Getting ready to publish for the first time and wondering how the folio name or the publication name affects anything going to apple. I am guessing the publication name and folio number live on in the app navigation, but not sure about the folio name

  • The installer thinks a newer version of QuickTime exists.

    I tried to upgrade to iTunes 7.6, but I couldn't, so I tried installing it manually. I uninstalled iTunes and QuickTime, but when I went to install iTunes I got the following error message. "A newer version of QuickTime is already installed. This ins

  • In general how is T series performance for data warehousing databases ~1 TB

    Hi, I am planning to use a Sun T3-2 for a data warehouse app. Oracle 11g around a 1 TB worth of data and batch jobs and ~ 200 concurrent users. We are using HP UX Superdome server now ( node partition of 8 physical CPU's 750 Mhz ). I know that the T

  • How to Check Cost Center to Manager

    Hello All, Is there any FM to check if a cost center is involved A250 relationship with any position.  The input parameter should be the costcenter and the outparam should be the position with which it has the A250 relationship. Thanks in Advance RK

  • EMac v's iMac Tiger OS install

    Sorry if this has been discussed to no end. Hi All, (right to the point) I have a lampshade iMac 10.3.9, Processor 800MHz PowerPC G4 Memory 768 MB SDRAM. DVD-RW- DVR-104 Not thinking I bought a DVD 10.4 eMac OS, loaded to install BUT it says it won't