General XMetaL Discussion
Markus September 16, 2016 at 11:37 am
XMAX without XACSeptember 16, 2016 at 11:37 amParticipants 0Replies 1Last Activity 5 years, 9 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.
MarkusDerek Read September 16, 2016 at 10:11 pm
Reply to: XMAX without XACSeptember 16, 2016 at 10:11 pm
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:
- You must be logged in to reply to this topic.