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


## 
##     SVG 1.1 Mask Module
##     file: svg-mask.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-mask.rng,v 1.1 2003/07/15 07:11:10 dean Exp $
##   

## 
##     Mask
## 
##         mask
## 
##     This module declares markup to provide support for masking.
##   

## 
##     Datatypes
##   
[ xml:lang = "en" ]
grammar {
  MaskValue.datatype = xsd:string
  a:documentation [ "\x{a}" ~ "    SVG.Mask.attrib\x{a}" ~ "  " ]
  SVG.Mask.extra.attrib = empty
  SVG.Mask.attrib &=
    attribute mask { MaskValue.datatype }?,
    SVG.Mask.extra.attrib
  a:documentation [ "\x{a}" ~ "    SVG.Mask.class\x{a}" ~ "  " ]
  SVG.Mask.extra.class = notAllowed
  SVG.Mask.class |= mask | SVG.Mask.extra.class
  a:documentation [ "\x{a}" ~ "    mask: Mask Element\x{a}" ~ "  " ]
  SVG.mask.content =
    (SVG.Description.class
     | SVG.Animation.class
     | SVG.Structure.class
     | SVG.Conditional.class
     | SVG.Image.class
     | SVG.Style.class
     | SVG.Shape.class
     | SVG.Text.class
     | SVG.Marker.class
     | SVG.Profile.class
     | SVG.Gradient.class
     | SVG.Pattern.class
     | SVG.Clip.class
     | SVG.Mask.class
     | SVG.Filter.class
     | SVG.Cursor.class
     | SVG.Hyperlink.class
     | SVG.View.class
     | SVG.Script.class
     | SVG.Font.class)*
  mask = element mask { attlist.mask, SVG.mask.content }
  attlist.mask &=
    SVG.Core.attrib,
    SVG.Conditional.attrib,
    SVG.Style.attrib,
    SVG.Presentation.attrib,
    SVG.External.attrib,
    attribute x { Coordinate.datatype }?,
    attribute y { Coordinate.datatype }?,
    attribute width { Length.datatype }?,
    attribute height { Length.datatype }?,
    attribute maskUnits { "userSpaceOnUse" | "objectBoundingBox" }?,
    attribute maskContentUnits {
      "userSpaceOnUse" | "objectBoundingBox"
    }?
}