General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Modify the HTML preview of XML files
-
Xtreme November 24, 2008 at 5:58 pm
Modify the HTML preview of XML files
November 24, 2008 at 5:58 pmParticipants 3Replies 4Last Activity 14 years, 4 months agoHi,
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
Bouissaghouane November 25, 2008 at 9:06 am
Reply to: Modify the HTML preview of XML files
November 25, 2008 at 9:06 amI'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
Xtreme November 26, 2008 at 12:20 pm
Reply to: Modify the HTML preview of XML files
November 26, 2008 at 12:20 pmExactly! 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.
Bouissaghouane November 26, 2008 at 12:39 pm
Reply to: Modify the HTML preview of XML files
November 26, 2008 at 12:39 pmI'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
Xtreme November 26, 2008 at 1:28 pm
Reply to: Modify the HTML preview of XML files
November 26, 2008 at 1:28 pmOh, 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.
-
AuthorPosts
- You must be logged in to reply to this topic.