sch:ns

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
prefix restriction of xs:NMTOKEN required
uri required

Used By

Element n1:grammar

Source

<xs:element name="ns">
  <xs:complexType>
    <xs:attribute name="prefix" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="mei"/>
          <xs:enumeration value="xlink"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="uri" use="required"/>
  </xs:complexType>
</xs:element>

Sample

< constraint xmlns = "http://www.tei-c.org/ns/1.0" xmlns:sch = "http://purl.oclc.org/dsdl/schematron" >

< sch:ns prefix = "mei" uri = "http://www.music-encoding.org/ns/mei" />

< sch:ns prefix = "xlink" uri = "http://www.w3.org/1999/xlink" />

</ constraint>