Pages: 1
Print
Author Topic: Modify the HTML preview of XML files  (Read 3265 times)
Xtreme
Member

Posts: 4


« on: November 24, 2008, 11:58:37 AM »

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-<head>. There must be a XSLT or s.th. like this to generate the HTML-Code, I think.

Thanks
Logged
Bouissaghouane
Member

Posts: 5


« Reply #1 on: November 25, 2008, 03:06:33 AM »

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 <projectname>_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
Logged
Xtreme
Member

Posts: 4


« Reply #2 on: November 26, 2008, 06:20:19 AM »

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.
Logged
Bouissaghouane
Member

Posts: 5


« Reply #3 on: November 26, 2008, 06:39:13 AM »

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
Logged
Xtreme
Member

Posts: 4


« Reply #4 on: November 26, 2008, 07:28:21 AM »

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.

 
Logged
Pages: 1
Print
Jump to: