General XMetaL Discussion

  • Markus

    XMAX without XAC

    Participants 0
    Replies 1
    Last Activity 6 years, 2 months ago


    we are creating a Windows application with XMAX 11. Is it required that the customizations are provided as an XAC file? Or can we also use the classic approach that is supported in XMetaL Author:
    – myfile.xml is referencing mydtd.dtd
    – mydtd.dtd, mydtd.css, mydtd.ctm … reside in the same folder as myfile.xml

    In my tryouts this did not work with XMAX.



    Derek Read

    Reply to: XMAX without XAC

    Yes, XMAX supports what you state here.

    However, because XMAX does not use catalog files and has no fall-back folder (like the Rules folder in XMetaL Author) you must specify a SYSTEM id in the DOCTYPE declaration in your XML file that must resolve (ie: the DTD is located there). You can specify a PUBLIC id but it will not be used if the path specified in the SYSTEM id portion cannot be located.

    Then when you call either LoadFromString() or LoadFromFile() do not specify a path to an XAC file (second parameter).
    Depending on which language you are coding in you may need to specify a null value or empty string value for the syntax to be legal.

    Here's an HTML / JScript example for use in a web page:


    XMAX Test



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

Lost Your Password?