xml-events.rng

来自「gaca源码」· RNG 代码 · 共 88 行

RNG
88
字号

<!-- ==============================================================
      SVG12-RNG | SVG 1.2 XML Events integration
     ============================================================== -->

<grammar ns='http://www.w3.org/2001/xml-events'
         xml:lang='en'
         xmlns='http://relaxng.org/ns/structure/1.0'
         xmlns:xlink='http://www.w3.org/1999/xlink'
         xmlns:ev='http://www.w3.org/2001/xml-events'
         xmlns:a='http://relaxng.org/ns/compatibility/annotations/1.0'
         xmlns:svg='http://www.w3.org/2005/02/svg-annotations'
         datatypeLibrary='http://www.w3.org/2001/XMLSchema-datatypes'
         >


  <define name='svg.GCommon.group' combine='choice'>
    <ref name='listener'/>
  </define>

  <!-- ... listener ................................................ -->
  <define name='listener'>
    <element name='listener'>
      <ref name='listener.AT'/>
      <ref name='listener.CM'/>
    </element>
  </define>

  <define name='listener.AT' combine='interleave'>
    <ref name='svg.Core.attr'/>
    <optional>
      <attribute name='event' svg:animatable='false' svg:inheritable='false'>
        <ref name='XSLT-QName.datatype'/>
      </attribute>
    </optional>
    <optional>
      <attribute name='phase' svg:animatable='false' svg:inheritable='false'>
        <choice>
          <value>default</value>
          <value>capture</value>
        </choice>
      </attribute>
    </optional>
    <optional>
      <attribute name='propagate' svg:animatable='false' svg:inheritable='false'>
        <choice>
          <value>continue</value>
          <value>stop</value>
        </choice>
      </attribute>
    </optional>
    <optional>
      <attribute name='defaultAction' svg:animatable='false' svg:inheritable='false'>
        <choice>
          <value>perform</value>
          <value>cancel</value>
        </choice>
      </attribute>
    </optional>
    <optional>
      <attribute name='observer' svg:animatable='false' svg:inheritable='false'>
        <ref name='IRI.datatype'/>
      </attribute>
    </optional>
    <optional>
      <attribute name='target' svg:animatable='false' svg:inheritable='false'>
        <ref name='IRI.datatype'/>
      </attribute>
    </optional>
    <optional>
      <attribute name='handler' svg:animatable='false' svg:inheritable='false'>
        <ref name='IRI.datatype'/>
      </attribute>
    </optional>
    <optional>
      <attribute name="enabled" svg:animatable="false" svg:inheritable="false">
        <ref name="Boolean.datatype"/>
      </attribute>
    </optional>
  </define>


  <define name='listener.CM'>
    <empty/>
  </define>

</grammar>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?