shape.dtd, diagram.dtd



I attach files which I think ara better than the ones in the 
distribution:

present shape. dtd:  doesnt mention the possibility of using text. (And 
there is  a typo error for path).

present diagram.dtd:  does not say  "dia:" before attribute names.
   I have an old dia-XML file  without those "dia:", and Dia interprets 
it; but if I "save as" it,  the "dia:"'s appear.
 I'am not sure whether the diagram.dtd has to be changed ... 
      
Loli
email:  loli unsa edu ar
Sent using NeoMail, a web-based e-mail client.
http://neomail.sourceforge.net
<!ELEMENT dia:diagram (dia:diagramdata, (dia:layer)*) >
<!ATLIST dia:diagram
   xmlns CDATA #FIXED "http://www.lysator.liu.se/~alla/dia/";

<!ELEMENT dia:diagramdata (dia:attribute)* >

<!ELEMENT dia:layer (dia:object | dia:group)*>
<!ATTLIST dia:layer
   name CDATA #REQUIRED
   visible (true|false) #REQUIRED >

<!ELEMENT dia:object ((dia:attribute)*, dia:connections?)>
<!ATTLIST dia:object
   type CDATA #REQUIRED
   version NMTOKEN #REQUIRED
   id ID #REQUIRED >

<!ELEMENT dia:connections (dia:connection)*>

<!ELEMENT dia:connection EMPTY>
<!ATTLIST dia:connection
   handle NMTOKEN #REQUIRED
   to IDREF #REQUIRED
   connection NMTOKEN #REQUIRED>

<!ELEMENT dia:group (dia:object | dia:group)*>

<!ELEMENT dia:attribute (dia:composite | dia:int | dia:enum | dia:real |
                    dia:boolean | dia:color | dia:point | dia:rectangle | 
                    dia:string | dia:font)*>
<!ATTLIST dia:attribute  name CDATA #REQUIRED >

<!ELEMENT dia:composite (dia:attribute)*>
<!ATTLIST dia:composite  type CDATA #IMPLIED>

<!ELEMENT  dia:int EMPTY>
<!ATTLIST  dia:int  val NMTOKEN #REQUIRED>

<!ELEMENT  dia:enum EMPTY>
<!ATTLIST  dia:enum  val NMTOKEN #REQUIRED>

<!ELEMENT  dia:real EMPTY>
<!ATTLIST  dia:real  val CDATA #REQUIRED>

<!ELEMENT  dia:boolean EMPTY>
<!ATTLIST  dia:boolean  val (true|false) #REQUIRED>

<!ELEMENT  dia:color EMPTY>
<!ATTLIST dia:color  val CDATA #REQUIRED>

<!ELEMENT dia:point EMPTY>
<!ATTLIST dia:point  val CDATA #REQUIRED>

<!ELEMENT dia:rectangle EMPTY>
<!ATTLIST dia:rectangle  val CDATA #REQUIRED>

<!ELEMENT dia:string (#PCDATA)>

<!ELEMENT dia:font EMPTY>
<!ATTLIST dia:font name CDATA #REQUIRED>
<!ELEMENT shape (name, description*, icon?, connections?,
                 aspectratio?, 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 'C' >

<!ELEMENT icon (#PCDATA)* >

<!ELEMENT connections (point*) >

<!ELEMENT point EMPTY >
<!ATTLIST point
  x CDATA #REQUIRED
  y CDATA #REQUIRED >

<!ELEMENT aspectratio EMPTY >
<!ATTLIST aspectratio
  type CDATA #REQUIRED
  min CDATA #IMPLIED
  max CDATA #IMPLIED >

<!ELEMENT textbox EMPTY >
<!ATTLIST textbox
  x1 CDATA #REQUIRED
  y1 CDATA #REQUIRED
  x2 CDATA #REQUIRED
  y2 CDATA #REQUIRED >

<!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 >

<!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
  stytle CDATA #IMPLIED >

<!ELEMENT svg:polygon EMPTY >
<!ATTLIST svg:polygon
  points CDATA #REQUIRED
  stytle 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:circle EMPTY >
<!ATTLIST svg:circle
  cx CDATA #REQUIRED
  cy CDATA #REQUIRED
  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 >


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]