Stylus Studio XML Editor

Table of contents

Appendices

7 Conformance of Documents

Conformance of Documents

This specification applies to XML 1.1 documents. To conform to this specification, a document MUST be well-formed according to the XML 1.1 specification [XML11] .

In XML documents which conform to this specification, element and attribute names MUST match the production for [QName] and MUST satisfy the "Namespace Constraints". All other tokens in the document which are REQUIRED, for XML 1.1 well-formedness, to match the XML production for Name, MUST match this specification's production for [NCName] .

A document is namespace-well-formed if it conforms to this specification.

It follows that in a namespace-well-formed document:

  • All element and attribute names contain either zero or one colon;

  • No entity names, processing instruction targets, or notation names contain any colons.

In addition, a namespace-well-formed document may also be namespace-valid.

A namespace-well-formed document is namespace-valid if it is valid according to the XML 1.1 specification, and all tokens other than element and attribute names which are REQUIRED, for XML 1.1 validity, to match the XML production for Name, match this specification's production for [NCName] .

It follows that in a namespace-valid document:

  • No attributes with a declared type of ID, IDREF(S), ENTITY(IES), or NOTATION contain any colons.