General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Will rule file still be generated when referencing to http location?

  • achu

    Will rule file still be generated when referencing to http location?

    Participants 1
    Replies 2
    Last Activity 11 years, 4 months ago

    It seems like no rules file is generated when xsd is located at the web site.

    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
    xsi:schemaLocation=”http://www.w3schools.com http://localhost:47154/note.xsd”>
      Tove
      Jani
      Reminder
      Don't forget me this weekend!

    Reply

    Derek Read

    Reply to: Will rule file still be generated when referencing to http location?

    If XMetaL locates your schema or DTD at an HTTP address it must first download it. It creates a temporary folder for one time usage here:
    %temp%#####www.somewebsite.comsubfolder1subfolder2etc...

    Where ##### is some unique random 4 or 5 digit number.

    RLX and RLD files are generated at the same path.

    It is easiest to just check the following API property if you need to find your RLD or RLX file for whatever reason (perhaps you do not have XMetaL Developer but wish to distribute the RLX or RLD): ActiveDocument.RulesFile

    Example:
    // XMetaL Script Language JSCRIPT:
    ActiveDocument.Host.Alert(ActiveDocument.RulesFile);

    It is recommended that you do not distribute XMetaL customizations this way unless you package them inside an XAC file containing the RLX or RLD + CSS + CTM + optional MCR and other files. You need to compile an XAC using XMetaL Developer.

    If you cannot use an XAC package then you should flatten your DTD or XSD into a single file for best results and the CSS, CTM and MCR files must be given the same name as the DTD or XSD in order to be found and downloaded. If found these additional files will be downloaded to the same folder as the schema. These files are downloaded every time a document is opened and this will slow down the initial document rendering time accordingly, with slower internet connections, slow web servers, etc, all coming into play here.

    In general it is best to distribute customizations to each machine or use a 3rd party mechanism for distribution (like those provided by CMS vendors). This is the best way to give users of XMetaL the best authoring experience.

    Reply

    achu

    Reply to: Will rule file still be generated when referencing to http location?

    I see.
    will those temp folders be cleaned up by XMetal or APIs provided by XMetal? or user need to be responsible for the cleaning up.

    Reply

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

Lost Your Password?

Products
Downloads
Support