QDoc Namespaces
All QDoc and QDoc components are defined in some XML namespace, in order to clearly identify the QAD application product with which they are associated as well as prevent QDoc naming clashes across QAD products. The namespace URIs are abstract identifiers that do not dictate the URL, directory, or path names in which the QDoc files must reside.All QAD-standard QAD Enterprise Applications QDocs use one of the following namespace URIs, depending on the QDoc syntax specification:
• QDoc 1.0 specification: http://www.qad.com/qdoc/eb
• QDoc 1.1 specification: urn:schemas-qad-com:xml-services
QDoc components common to all QAD products use one of the namespace URIs listed below. In particular, the QDoc message envelope and QDoc confirmation are defined in this namespace:
• QDoc 1.0 specification: http://www.qad.com/qdoc/common
• QDoc 1.1 specification: urn:schemas-qad-com:xml-services:common
Users building custom QDocs or extending QAD-defined QDocs must define their new XML elements and attributes inside a different namespace than the QAD namespaces to allow the unambiguous mixing of QAD- and user-defined syntax within the same QDoc. Separate namespaces also allow custom QDoc syntax to be validated using separate, user-specific XML schemas.The standard QDoc namespace URI incorporates the URL of the QAD Web site (http://www.qad.com). For custom QDocs, you can use the simpler URN syntax, which is colon-delimited beginning with the urn: prefix as in the following examples:urn:schemas-microsoft-com:xml-msdata
urn:schemas-progress-com:xml-prodata:0001
urn:schemas-qad-com:xml-services
The tokens between each colon are user-defined. The last token can be used as a version identifier, as in the second example above.In QDoc specification 1.0 various predefined elements and attributes used across all QDoc types are defined in the namespaces and placed into a single XML schema file called qdocCommon-.xsd. See version. These common XML schema files do not contain application objects, but only non-application data. The appropriate version is imported into every QAD Enterprise Applications QDoc XML schema.In QDoc specification 1.1 versioning information is contained within the schema file name. See Schema File Names and Versioning for details.