General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Modify the HTML preview of XML files

  • Xtreme

    Modify the HTML preview of XML files

    Participants 3
    Replies 4
    Last Activity 12 years, 11 months ago

    Hi,

    could someone tell me if/how I can modify the HTML-preview of XML files in the embedded Internet Explorer? I want to implement some JavaScript libraries in the HTML-. There must be a XSLT or s.th. like this to generate the HTML-Code, I think.

    Thanks

    Reply

    Bouissaghouane

    Reply to: Modify the HTML preview of XML files

    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

    Xtreme

    Reply to: Modify the HTML preview of XML files

    Exactly! This helps me very much. Now I need to know how to launch the XMLToHTMLSetup()-macro. Sorry, I had never created a macro before. But it should be in the programmers guide to, I think.

    Reply

    Bouissaghouane

    Reply to: Modify the HTML preview of XML files

    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

    Xtreme

    Reply to: Modify the HTML preview of XML files

    Oh, I made a mistake. I changed the wrong *_HTML_Style.xsl. We've another XSL file with the same name on the server which get's loaded by XMetaL on the client. So I don't need to change any macros. It works fine! Now I'm trying to implement the fabulous script.aculo.us-library.

     

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support