Home Forums General XMetaL Discussion Validation Schema and XInlcude and validation in general Reply To: Validation Schema and XInlcude and validation in general

Derek Read

Reply to: Validation Schema and XInlcude and validation in general

If the schema you are working with does not include element declarations for the necessary XInclude elements then it will need to be modified.
See: http://www.w3.org/TR/xinclude/

XMetaL uses either a DTD or W3C Schema not just for validation but for “rules checking” (as well as many other features). Rules checking is essentially “live validation” (I make the distinction because some products do not have the equivalent). If an element is not allowed according to the schema then the product will generally not allow you to insert it, and if it is found (added in Plain Text view or in another application) it will complain. Rules checking can be turned off but doing so disables much of the useful functionality of the product.

Note: It is possible to extend a DTD when the DTD is first read in using APIs to add elements and attributes, however, the same APIs are not available for W3C Schema so they will not help here unfortunately. This feature is used mainly for integrations with CMS systems where a CMS might add elements or attributes to an XML file that are not really in the DTD (usually for versioning and similar metadata).

Reply

Products
Downloads
Support