Home Forums General XMetaL Discussion Completely basic question: How to use a schema in XMetaL? Reply To: Completely basic question: How to use a schema in XMetaL?

Derek Read

Reply to: Completely basic question: How to use a schema in XMetaL?

In the W3C XML Schema Part 1: Structures Second Edition, under “[url=http://www.w3.org/TR/xmlschema-1/#compound-schema]4.2.1 Assembling a schema for a single target namespace from multiple schema definition documents[/url]”, it says:

Such included schema documents must either (a) have the same targetNamespace as the ing schema document, or (b) no targetNamespace at all, in which case the d schema document is converted to the ing schema document's targetNamespace.

Support for case (b) is not implemented yet. The current workaround for this with current versions of XMetaL Author or XMAX up to 5.5 is to modify the Schema files so the targetNamespace inside any matches the file it is referencing (or so that the referenced file has the same targetNamespace as the ). Given the assumption that is supposed to be made by the parser, in this case XMetaL, this does not actually change the Schema (except to hard code the assumption of the targetNamespaces matching).

Improving W3C Schema support to fill in some of the gaps is one area we are working on at the moment, and Docbook (among several others) is of particular interest to many clients.

If you do not wish to, or cannot, or are unable to, make this change to a Schema and a DTD is available you may try that instead. Note that all versions of Docbook currently include a DTD version of the schema.

Reply

Products
Downloads
Support