/usr/share/xml/dia/shape.dtd is in dia-common 0.97.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!ELEMENT shape (name|icon|description?|default-width?|default-height?|connections?|
aspectratio?|textbox?|ext_attributes?|svg:svg)* >
<!ATTLIST shape
xmlns CDATA #FIXED 'http://www.daa.com.au/~james/dia-shape-ns'
xmlns:svg CDATA #FIXED 'http://www.w3.org/2000/svg' >
<!ELEMENT name (#PCDATA)* >
<!-- This element is deprecated. Put descriptions in sheet files -->
<!ELEMENT description (#PCDATA)* >
<!ATTLIST description
xml:lang NMTOKEN #IMPLIED >
<!ELEMENT icon (#PCDATA)* >
<!ELEMENT connections (point*) >
<!ELEMENT point EMPTY >
<!ATTLIST point
x CDATA #REQUIRED
y CDATA #REQUIRED
main CDATA #IMPLIED >
<!ELEMENT aspectratio EMPTY >
<!ATTLIST aspectratio
type CDATA #REQUIRED
min CDATA #IMPLIED
max CDATA #IMPLIED >
<!ELEMENT default-width (#PCDATA)* >
<!ELEMENT default-height (#PCDATA)* >
<!ELEMENT textbox EMPTY >
<!ATTLIST textbox
x1 CDATA #REQUIRED
y1 CDATA #REQUIRED
x2 CDATA #REQUIRED
y2 CDATA #REQUIRED
align (left|center|right) #IMPLIED
resize (yes|no) #IMPLIED >
<!ELEMENT ext_attributes (ext_attribute)* >
<!ELEMENT ext_attribute EMPTY>
<!ATTLIST ext_attribute
name CDATA #REQUIRED
type CDATA #REQUIRED
description CDATA #IMPLIED >
<!ELEMENT svg:svg (svg:g | svg:line | svg:polyline | svg:polygon | svg:rect |
svg:circle | svg:ellipse | svg:path | svg:text)* >
<!ATTLIST svg:svg
width CDATA #IMPLIED
height CDATA #IMPLIED
style CDATA #IMPLIED
viewBox CDATA #IMPLIED >
<!ELEMENT svg:g (svg:g | svg:line | svg:polyline | svg:polygon | svg:rect |
svg:circle | svg:ellipse | svg:path | svg:text )* >
<!ATTLIST svg:g
style CDATA #IMPLIED >
<!ELEMENT svg:line EMPTY >
<!ATTLIST svg:line
x1 CDATA #REQUIRED
y1 CDATA #REQUIRED
x2 CDATA #REQUIRED
y2 CDATA #REQUIRED
style CDATA #IMPLIED >
<!ELEMENT svg:polyline EMPTY >
<!ATTLIST svg:polyline
points CDATA #REQUIRED
style CDATA #IMPLIED >
<!ELEMENT svg:polygon EMPTY >
<!ATTLIST svg:polygon
points CDATA #REQUIRED
style CDATA #IMPLIED >
<!ELEMENT svg:rect EMPTY >
<!ATTLIST svg:rect
x CDATA #REQUIRED
y CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED
style CDATA #IMPLIED >
<!ELEMENT svg:image EMPTY >
<!ATTLIST svg:image
x CDATA #IMPLIED
y CDATA #IMPLIED
width CDATA #REQUIRED
height CDATA #REQUIRED
xlink:href CDATA #REQUIRED >
<!ELEMENT svg:circle EMPTY >
<!ATTLIST svg:circle
cx CDATA #REQUIRED
cy CDATA #IMPLIED
r CDATA #REQUIRED
style CDATA #IMPLIED >
<!ELEMENT svg:ellipse EMPTY >
<!ATTLIST svg:ellipse
cx CDATA #REQUIRED
cy CDATA #REQUIRED
rx CDATA #REQUIRED
ry CDATA #REQUIRED
style CDATA #IMPLIED >
<!ELEMENT svg:path EMPTY >
<!ATTLIST svg:path
d CDATA #REQUIRED
style CDATA #IMPLIED
stroke-dasharray CDATA #IMPLIED >
|