summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rnc/LaTeXML/svg-paint-attrib.rnc
blob: bcb9ccce9e4f75572e2d9be154d5c764216c569c (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
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"


## 
##     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 $
##   

## 
##     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.
##   
[ xml:lang = "en" ]
grammar {
  
  ## 
  ##       a 'fill' or 'stroke' property/attribute value: <paint>
  ##     
  Paint.datatype = xsd:string
  
  ## 
  ##       'stroke-dasharray' property/attribute value
  ##       (e.g., 'none', list of <number>s)
  ##     
  StrokeDashArrayValue.datatype = xsd:string
  
  ## 
  ##       'stroke-dashoffset' property/attribute value (e.g., 'none', <legnth>)
  ##     
  StrokeDashOffsetValue.datatype = xsd:string
  
  ## 
  ##       'stroke-miterlimit' property/attribute value (e.g., <number>)
  ##     
  StrokeMiterLimitValue.datatype = xsd:string
  
  ## 
  ##       'stroke-width' property/attribute value (e.g., <length>)
  ##     
  StrokeWidthValue.datatype = xsd:string
  SVG.fill.attrib = attribute fill { Paint.datatype }?
  SVG.fill-rule.attrib = attribute fill-rule { ClipFillRule.datatype }?
  SVG.stroke.attrib = attribute stroke { Paint.datatype }?
  SVG.stroke-dasharray.attrib =
    attribute stroke-dasharray { StrokeDashArrayValue.datatype }?
  SVG.stroke-dashoffset.attrib =
    attribute stroke-dashoffset { StrokeDashOffsetValue.datatype }?
  SVG.stroke-linecap.attrib =
    attribute stroke-linecap {
      "butt" | "round" | "square" | "inherit"
    }?
  SVG.stroke-linejoin.attrib =
    attribute stroke-linejoin {
      "miter" | "round" | "bevel" | "inherit"
    }?
  SVG.stroke-miterlimit.attrib =
    attribute stroke-miterlimit { StrokeMiterLimitValue.datatype }?
  SVG.stroke-width.attrib =
    attribute stroke-width { StrokeWidthValue.datatype }?
  SVG.Paint.extra.attrib = empty
  SVG.Paint.attrib &=
    SVG.fill.attrib,
    SVG.fill-rule.attrib,
    SVG.stroke.attrib,
    SVG.stroke-dasharray.attrib,
    SVG.stroke-dashoffset.attrib,
    SVG.stroke-linecap.attrib,
    SVG.stroke-linejoin.attrib,
    SVG.stroke-miterlimit.attrib,
    SVG.stroke-width.attrib,
    SVG.Paint.extra.attrib
  SVG.color.attrib = attribute color { Color.datatype }?
  SVG.color-interpolation.attrib =
    attribute color-interpolation {
      "auto" | "sRGB" | "linearRGB" | "inherit"
    }?
  SVG.color-rendering.attrib =
    attribute color-rendering {
      "auto" | "optimizeSpeed" | "optimizeQuality" | "inherit"
    }?
  SVG.Color.extra.attrib = empty
  SVG.Color.attrib &=
    SVG.color.attrib,
    SVG.color-interpolation.attrib,
    SVG.color-rendering.attrib,
    SVG.Color.extra.attrib
}