summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rng/svg-paint-attrib.rng
blob: fe9d499edca3830022357ee0951e87cc13e00571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="UTF-8"?>
<grammar xml:lang="en" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <a:documentation>
    SVG 1.1 Paint Attribute Module
    file: svg-paint-attrib.rng

    This is SVG, a language for describing two-dimensional graphics in XML.
    Copyright 2001, 2002 W3C (MIT, INRIA, Keio), All Rights Reserved.

    $Id: svg-paint-attrib.rng,v 1.1 2003/07/15 07:11:10 dean Exp $
  </a:documentation>
  <a:documentation>
    Paint Attribute

        fill, fill-rule, stroke, stroke-dasharray, stroke-dashoffset,
        stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-width, color,
        color-interpolation, color-rendering

    This module defines the Paint and Color attribute sets.
  </a:documentation>
  <define name="Paint.datatype">
    <a:documentation>
      a 'fill' or 'stroke' property/attribute value: &lt;paint&gt;
    </a:documentation>
    <data type="string"/>
  </define>
  <define name="StrokeDashArrayValue.datatype">
    <a:documentation>
      'stroke-dasharray' property/attribute value
      (e.g., 'none', list of &lt;number&gt;s)
    </a:documentation>
    <data type="string"/>
  </define>
  <define name="StrokeDashOffsetValue.datatype">
    <a:documentation>
      'stroke-dashoffset' property/attribute value (e.g., 'none', &lt;legnth&gt;)
    </a:documentation>
    <data type="string"/>
  </define>
  <define name="StrokeMiterLimitValue.datatype">
    <a:documentation>
      'stroke-miterlimit' property/attribute value (e.g., &lt;number&gt;)
    </a:documentation>
    <data type="string"/>
  </define>
  <define name="StrokeWidthValue.datatype">
    <a:documentation>
      'stroke-width' property/attribute value (e.g., &lt;length&gt;)
    </a:documentation>
    <data type="string"/>
  </define>
  <define name="SVG.fill.attrib">
    <optional>
      <attribute name="fill">
        <ref name="Paint.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.fill-rule.attrib">
    <optional>
      <attribute name="fill-rule">
        <ref name="ClipFillRule.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.stroke.attrib">
    <optional>
      <attribute name="stroke">
        <ref name="Paint.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.stroke-dasharray.attrib">
    <optional>
      <attribute name="stroke-dasharray">
        <ref name="StrokeDashArrayValue.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.stroke-dashoffset.attrib">
    <optional>
      <attribute name="stroke-dashoffset">
        <ref name="StrokeDashOffsetValue.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.stroke-linecap.attrib">
    <optional>
      <attribute name="stroke-linecap">
        <choice>
          <value>butt</value>
          <value>round</value>
          <value>square</value>
          <value>inherit</value>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="SVG.stroke-linejoin.attrib">
    <optional>
      <attribute name="stroke-linejoin">
        <choice>
          <value>miter</value>
          <value>round</value>
          <value>bevel</value>
          <value>inherit</value>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="SVG.stroke-miterlimit.attrib">
    <optional>
      <attribute name="stroke-miterlimit">
        <ref name="StrokeMiterLimitValue.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.stroke-width.attrib">
    <optional>
      <attribute name="stroke-width">
        <ref name="StrokeWidthValue.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.Paint.extra.attrib">
    <empty/>
  </define>
  <define name="SVG.Paint.attrib" combine="interleave">
    <ref name="SVG.fill.attrib"/>
    <ref name="SVG.fill-rule.attrib"/>
    <ref name="SVG.stroke.attrib"/>
    <ref name="SVG.stroke-dasharray.attrib"/>
    <ref name="SVG.stroke-dashoffset.attrib"/>
    <ref name="SVG.stroke-linecap.attrib"/>
    <ref name="SVG.stroke-linejoin.attrib"/>
    <ref name="SVG.stroke-miterlimit.attrib"/>
    <ref name="SVG.stroke-width.attrib"/>
    <ref name="SVG.Paint.extra.attrib"/>
  </define>
  <define name="SVG.color.attrib">
    <optional>
      <attribute name="color">
        <ref name="Color.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="SVG.color-interpolation.attrib">
    <optional>
      <attribute name="color-interpolation">
        <choice>
          <value>auto</value>
          <value>sRGB</value>
          <value>linearRGB</value>
          <value>inherit</value>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="SVG.color-rendering.attrib">
    <optional>
      <attribute name="color-rendering">
        <choice>
          <value>auto</value>
          <value>optimizeSpeed</value>
          <value>optimizeQuality</value>
          <value>inherit</value>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="SVG.Color.extra.attrib">
    <empty/>
  </define>
  <define name="SVG.Color.attrib" combine="interleave">
    <ref name="SVG.color.attrib"/>
    <ref name="SVG.color-interpolation.attrib"/>
    <ref name="SVG.color-rendering.attrib"/>
    <ref name="SVG.Color.extra.attrib"/>
  </define>
</grammar>