Niels Grundtvig Nielsen wrote:
> Taking my first steps with adding a new template, carefully following
> the documentation ...
> I managed to get example1 up and running, and then successfully made my
> first change to the DTD.
> Second step, another change to the DTD: this time, File > New flashes up
> the message "the sequence of child elements is incorrect". If I persist,
> though, and add some content I end up with a valid document.
> What's the problem, and what do I need to do about it? And I can't
> visualise what the default example1.xml file is actually doing; what
> does it contribute that isn't already present in the DTD? I'll even read
> the documentation again if you tell me where to look ;-} it's usually
> fairly clear.
> Thanks in advance for hints and tips

* The template document needs to be valid. It is validated against the 
schema referenced by the document if any, or the schema specified in the 
configuration file otherwise.

* Make sure that your template document is really detected as being 
associated to your configuration.

To check this, move your mouse over the Tab of the document view 
(normally showing Untitled.xml). After 1 second, the tooltip shows 
"/xxx/Untitled.xml : Name of the configuration".

* The DTD and W3C schema are persistently cached in fast loading, 
binary, form. May be the schema cache has not detected that you have 
modified your DTD. In such case, the template document is validated 
against the old, cached, version of the DTD.

Please, use Options|Preferences, "Advanced|Schema Cache section", and 
press "Clear cache". Or better, uncheck "Enable cache" while you are 
developing your configuration.

More info. in: 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.dialog.PreferencesEditorDialog.html#d0e9399

* If all this fails, do not hesitate to send me your prototype 
configuration. I'll very quickly tell you what's wrong (probably 
something very simple).

Reply via email to