General XMetaL Discussion
Polly Poon August 5, 2009 at 2:05 am
Setting up CTM file for XML Schema based documentAugust 5, 2009 at 2:05 amParticipants 1Replies 2Last Activity 13 years, 2 months ago
I am having problems setting up the CTM file for a XML Schema based document.
Initially I opened a XML document defined by a XML Schema. XMetaL Author 5.5 has automatically created a CTM file for me.
I checked the automatically generated CTM file and found that a set of ns prefix mapping has been created. A set of
are also defined for my XML document.
I tried to modified the CTM file. First, i have taken out the
element from the to activate the pretty print options that are defined for the element.
I then tried to configure the
for the elements. However, none of the settings I added to the CTM file appears to have taken effect.
For example, I added
to one of the of . Then I saved the CTM file and open the XML Document in XMetaL. When I switched to the plain text view, no new blank lines were inserted before the start tag of .
Are there anythings i need to add to the CTM file for it to take effect?Su-Laine Yeo August 5, 2009 at 9:39 pm
Reply to: Setting up CTM file for XML Schema based documentAugust 5, 2009 at 9:39 pm
I'm not sure if this is the only issue, but you do have to restart XMetaL in order for CTM changes to take effect.Derek Read August 5, 2009 at 11:07 pm
Reply to: Setting up CTM file for XML Schema based documentAugust 5, 2009 at 11:07 pm
I think Su-Laine is correct. Unless you have XMetaL Developer installed, changes you make to customization files typically require you to restart XMetaL Author.
It could also be that (if you are hand-coding your CTM files) you have introduced an error. In most cases XMetaL Author will simply ignore things it does not understand. In some cases it will read the file up to that point and ignore the rest. In some cases it might skip over a section it doesn't understand. In rare cases it may be possible to crash the product as well, though I believe most of these have been ironed out (ideally you shouldn't be feeding the product invalid configuration settings anyway, we only test with files generated by XMetaL Developer as that is the expected use case).
- You must be logged in to reply to this topic.