Stylus Studio XML Editor

Table of contents

Appendices

3.12 Notation Declarations

Notation Declarations

Notation declarations reconstruct XML 1.0 NOTATION declarations.

NOTE: 
<xs:notation name="jpeg" public="image/jpeg" system="viewer.exe">

The XML representation of a notation declaration.

The Notation Declaration Schema Component[top]

The Notation Declaration Schema Component

The notation declaration schema component has the following properties:

[Notation Declaration]

Notation declarations do not participate in valid as such. They are referenced in the course of valid strings as members of the NOTATION simple type.

See [Annotations] for information on the role of the [n-annotation] property.

XML Representation of Notation Declaration Schema Components[top]

XML Representation of Notation Declaration Schema Components

The XML representation for a notation declaration schema component is a [notation] element information item. The correspondences between the properties of that information item and properties of the component it corresponds to are as follows:

[The Notation Declaration Schema Component]
NOTE: 
<xs:notation name="jpeg"
             public="image/jpeg" system="viewer.exe" />

<xs:element name="picture">
 <xs:complexType>
  <xs:simpleContent>
   <xs:extension base="xs:hexBinary">
    <xs:attribute name="pictype">
     <xs:simpleType>
      <xs:restriction base="xs:NOTATION">
       <xs:enumeration value="jpeg"/>
       <xs:enumeration value="png"/>
       . . .
      </xs:restriction>
     </xs:simpleType>
    </xs:attribute>
   </xs:extension>
  </xs:simpleContent>
 </xs:complexType>
</xs:element>

<picture pictype="jpeg">...</picture>

Constraints on XML Representations of Notation Declarations[top]

Constraints on XML Representations of Notation Declarations Notation Definition Representation OK

In addition to the conditions imposed on [notation] element information items by the schema for schemas, the corresponding notation definition must satisfy the conditions set out in [Constraints on Notation Declaration Schema Components].

Notation Declaration Validation Rules[top]

Notation Declaration Validation Rules

None as such.

Notation Declaration Information Set Contributions[top]

Notation Declaration Information Set Contributions Validated with Notation

Whenever an attribute information item is valid with respect to a NOTATION, in the post-schema-validation infoset its parent element information item either has a property as follows:

An item isomorphic to a component to the notation declaration whose [n-name] and [n-target_namespace] match the local name and namespace name (as defined in [QName Interpretation]) of the attribute item's actual value

or has a pair of properties as follows:

The value of the [system_identifier] of that notation declaration. The value of the [public_identifier] of that notation declaration.
NOTE: 

For compatibility, only one such attribute should appear on any given element. If more than one such attribute does appear, which one supplies the infoset property or properties above is not defined.

Constraints on Notation Declaration Schema Components[top]

Constraints on Notation Declaration Schema Components

All notation declarations (see [Notation Declarations]) must satisfy the following constraint.

Notation Declaration Correct

The values of the properties of a notation declaration must be as described in the property tableau in [The Notation Declaration Schema Component], modulo the impact of [Missing Sub-components].