Forum Replies Created
-
Bouissaghouane January 19, 2009 at 12:05 pm
Reply To: Creating Thick Border Lines
January 19, 2009 at 12:05 pmParticipants 0Replies 4Last Activity 14 years agoTo 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:
GeneralMohamed
Bouissaghouane January 5, 2009 at 10:23 am
Reply To: Creating Thick Border Lines
January 5, 2009 at 10:23 amParticipants 0Replies 4Last Activity 14 years, 1 month agodid 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
Bouissaghouane January 5, 2009 at 10:17 am
Reply To: Sharing files in XM Developer
January 5, 2009 at 10:17 amParticipants 0Replies 4Last Activity 14 years, 1 month agoThis 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
Bouissaghouane November 26, 2008 at 12:39 pm
Reply To: Modify the HTML preview of XML files
November 26, 2008 at 12:39 pmParticipants 0Replies 4Last Activity 14 years, 2 months agoI'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
Bouissaghouane November 25, 2008 at 9:06 am
Reply To: Modify the HTML preview of XML files
November 25, 2008 at 9:06 amParticipants 0Replies 4Last Activity 14 years, 2 months agoI'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
-
AuthorPosts