Forum Replies Created

  • Bouissaghouane

    Reply To: Creating Thick Border Lines

    Participants 0
    Replies 4
    Last Activity 14 years ago

    To change the HTML you need to edit a file called HTML_Style.xsl in your project directory. This file is generated by using the method XMLToHTMLSetup(); in one of your macros. If you can't find the file in your projectdir you have to create a macro and call the method to generate the file. 

    you can edit this file by finding the xsl template where the “DIV3” is matched. Add the border style to the other styles already defined in de HTML DIV element: the result could be:

    General

    Mohamed

    Reply

    Bouissaghouane

    Reply To: Creating Thick Border Lines

    Participants 0
    Replies 4
    Last Activity 14 years, 1 month ago

    did you try to edit the .css file an change the border of your xml element?

    for example:

    DIV3
    {
    display: block;
    border: 3px black solid;
    }

    Mohamed

    Reply

    Bouissaghouane

    Reply To: Sharing files in XM Developer

    Participants 0
    Replies 4
    Last Activity 14 years, 1 month ago

    This is generic way of creating some form of (primitive) sharing in X-Metal developer

    You can use a text editor to open the .xdp file in your project directory. Add a path to the filenames under the header “files”.

    For example:

    I have added all the routines I use to the event macro file “On_Macro_File_Load” (see the dev. docs about  this event!). This file is shared by alle the macros and events in my different projects. The file is in a shared directory “W:XM-Shared”. I usually edit the .xdp file and change “On_Macro_File_Load.js” in “W:\XM-Shared\On_Macro_File_Load.js” (escape the backslash). All my projects share the same On_Macro_File_Load even if i dont use all the routines. I just make sure that when a routine is changed all the projects are rebuild.

    I also create a macro called “Project_On_Macro_File_Load” in my project directory. This file contains the project-specific routines. At the end of the shared file “On_Macro_File_Load” I use the ActiveDocument.Host.Run(“Project_On_Macro_File_Load”) to make sure that the project specific routines are loaded.

    Mohamed

    Reply

    Bouissaghouane

    Reply To: Modify the HTML preview of XML files

    Participants 0
    Replies 4
    Last Activity 14 years, 2 months ago

    I'm not sure if you can create a macro in Xmetal. Personally I use Xmetal Developer and MS Studio to create .js macro's. I Assume you or someone else created a customization for your xml-documents. You need to open the customization and add a a call to XMLToHTMLSetup() in one of the routines. Do you use .xac files?

    Mohamed

    Reply

    Bouissaghouane

    Reply To: Modify the HTML preview of XML files

    Participants 0
    Replies 4
    Last Activity 14 years, 2 months ago

    I'am not sure if this is what you mean. But if you use XMLToHTMLSetup() somewhere is a macro (see programmers guide) Xmetal will generate an xslt-file in your project directory. Usually called _HTML_Style.xsl. You can edit this file to embed your javascript. Make sure to call  XMLToHTMLSetup() once. Calling it twise will overwrite you changes.

    Mohamed

    Reply

Products
Downloads
Support