4 This file is a part of the glabels template database.
6 Copyright (c) 2001-2009 Jim Evins
8 Permission is hereby granted, free of charge, to any person
9 obtaining a copy of this software and associated documentation
10 files (the "Software"), to deal in the Software without
11 restriction, including without limitation the rights to use,
12 copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the
14 Software is furnished to do so, subject to the following
17 The above copyright notice and this permission notice shall be
18 included in all copies or substantial portions of the Software.
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 OTHER DEALINGS IN THE SOFTWARE.
30 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
31 <!-- ENTITIES: primitive types used in element attributes -->
32 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
35 <!ENTITY % BOOLEAN_TYPE "(False | True | 0 | 1)">
36 <!ENTITY % STRING_TYPE "CDATA">
37 <!ENTITY % LENGTH_TYPE "CDATA"> <!-- %g (pt|in|mm|cm|pc) -->
38 <!ENTITY % INT_TYPE "CDATA"> <!-- %d | 0x%x | 0%o -->
39 <!ENTITY % UINT_TYPE "CDATA"> <!-- %u | 0x%x | 0%o -->
40 <!ENTITY % FLOAT_TYPE "CDATA"> <!-- %g -->
42 <!-- Text related enumerations/types -->
43 <!ENTITY % JUSTIFY_TYPE "(Left | Right | Center)">
44 <!ENTITY % FONT_WEIGHT_TYPE "(Regular | Bold)">
46 <!-- Barcode related enumerations/types -->
47 <!ENTITY % BC_BACKEND_TYPE "CDATA">
55 <!ENTITY % BC_STYLE_TYPE "CDATA">
89 <!-- Data encoding method -->
90 <!ENTITY % DATA_ENCODING_TYPE "(None | Base64)">
92 <!-- Inline file format type -->
93 <!ENTITY % FILE_FORMAT_TYPE "(SVG)">
95 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
96 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
97 <!-- Top-level glabels paper data base -->
98 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
99 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
100 <!ELEMENT Glabels-paper-sizes (Paper-size*)>
101 <!ATTLIST Glabels-paper-sizes
102 xmlns %STRING_TYPE; #IMPLIED
105 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
106 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
107 <!-- Top-level glabels categories data base -->
108 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
109 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
110 <!ELEMENT Glabels-categories (Category*)>
111 <!ATTLIST Glabels-categories
112 xmlns %STRING_TYPE; #IMPLIED
115 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
116 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
117 <!-- Top-level glabels vendors data base -->
118 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
119 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
120 <!ELEMENT Glabels-vendors (Vendor*)>
121 <!ATTLIST Glabels-vendors
122 xmlns %STRING_TYPE; #IMPLIED
125 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
126 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
127 <!-- Top-level glabels template data base -->
128 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
129 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
130 <!ELEMENT Glabels-templates (Template*)>
131 <!ATTLIST Glabels-templates
132 xmlns %STRING_TYPE; #IMPLIED
135 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
136 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
137 <!-- Top-level glabels document -->
138 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
139 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
140 <!ELEMENT Glabels-document (Template, Objects+, Merge?, Data*)>
141 <!ATTLIST Glabels-document
142 xmlns %STRING_TYPE; #IMPLIED
145 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
147 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
148 <!ELEMENT Paper-size EMPTY>
150 id %STRING_TYPE; #REQUIRED
151 name %STRING_TYPE; #IMPLIED
152 _name %STRING_TYPE; #IMPLIED
153 pwg_size %STRING_TYPE; #REQUIRED
154 width %LENGTH_TYPE; #REQUIRED
155 height %LENGTH_TYPE; #REQUIRED
158 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
160 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
161 <!ELEMENT Category EMPTY>
163 id %STRING_TYPE; #REQUIRED
164 name %STRING_TYPE; #IMPLIED
165 _name %STRING_TYPE; #IMPLIED
168 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
170 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
171 <!ELEMENT Vendor EMPTY>
173 name %STRING_TYPE; #REQUIRED
174 url %STRING_TYPE; #IMPLIED
177 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
178 <!-- Template Section -->
179 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
180 <!ENTITY % label_element "Label-rectangle | Label-round | Label-ellipse | Label-cd">
181 <!ENTITY % markup_element "Markup-margin | Markup-line | Markup-circle | Markup-rect | Markup-ellipse">
183 <!ELEMENT Template (Meta*, (%label_element;)*)>
185 brand %STRING_TYPE; #REQUIRED
186 part %STRING_TYPE; #REQUIRED
187 name %STRING_TYPE; #IMPLIED
188 equiv %STRING_TYPE; #IMPLIED
189 size %STRING_TYPE; #IMPLIED
190 width %LENGTH_TYPE; #IMPLIED
191 height %LENGTH_TYPE; #IMPLIED
192 description %STRING_TYPE; #IMPLIED
193 _description %STRING_TYPE; #IMPLIED
196 <!ELEMENT Meta EMPTY>
198 product_url %STRING_TYPE; #IMPLIED
199 category %STRING_TYPE; #IMPLIED
200 print %STRING_TYPE; #IMPLIED
203 <!ELEMENT Label-rectangle ((%markup_element;)*, Layout+)>
204 <!ATTLIST Label-rectangle
205 id %STRING_TYPE; #REQUIRED
206 width %LENGTH_TYPE; #REQUIRED
207 height %LENGTH_TYPE; #REQUIRED
208 round %LENGTH_TYPE; "0 pt"
209 waste %LENGTH_TYPE; #IMPLIED
210 x_waste %LENGTH_TYPE; #IMPLIED
211 y_waste %LENGTH_TYPE; #IMPLIED
214 <!ELEMENT Label-round ((%markup_element;)*, Layout+)>
215 <!ATTLIST Label-round
216 id %STRING_TYPE; #REQUIRED
217 radius %LENGTH_TYPE; #REQUIRED
218 waste %LENGTH_TYPE; #IMPLIED
221 <!ELEMENT Label-ellipse ((%markup_element;)*, Layout+)>
222 <!ATTLIST Label-ellipse
223 id %STRING_TYPE; #REQUIRED
224 width %LENGTH_TYPE; #REQUIRED
225 height %LENGTH_TYPE; #REQUIRED
226 waste %LENGTH_TYPE; #IMPLIED
229 <!ELEMENT Label-cd ((%markup_element;)*, Layout+)>
231 id %STRING_TYPE; #REQUIRED
232 radius %LENGTH_TYPE; #REQUIRED
233 hole %LENGTH_TYPE; #REQUIRED
234 width %LENGTH_TYPE; #IMPLIED
235 height %LENGTH_TYPE; #IMPLIED
236 waste %LENGTH_TYPE; #IMPLIED
239 <!ELEMENT Markup-margin EMPTY>
240 <!ATTLIST Markup-margin
241 size %LENGTH_TYPE; #REQUIRED
244 <!ELEMENT Markup-line EMPTY>
245 <!ATTLIST Markup-line
246 x1 %LENGTH_TYPE; #REQUIRED
247 y1 %LENGTH_TYPE; #REQUIRED
248 x2 %LENGTH_TYPE; #REQUIRED
249 y2 %LENGTH_TYPE; #REQUIRED
252 <!ELEMENT Markup-circle EMPTY>
253 <!ATTLIST Markup-circle
254 x0 %LENGTH_TYPE; #REQUIRED
255 y0 %LENGTH_TYPE; #REQUIRED
256 radius %LENGTH_TYPE; #REQUIRED
259 <!ELEMENT Markup-rect EMPTY>
260 <!ATTLIST Markup-rect
261 x1 %LENGTH_TYPE; #REQUIRED
262 y1 %LENGTH_TYPE; #REQUIRED
263 w %LENGTH_TYPE; #REQUIRED
264 h %LENGTH_TYPE; #REQUIRED
265 r %LENGTH_TYPE; "0 pt"
268 <!ELEMENT Markup-ellipse EMPTY>
269 <!ATTLIST Markup-ellipse
270 x1 %LENGTH_TYPE; #REQUIRED
271 y1 %LENGTH_TYPE; #REQUIRED
272 w %LENGTH_TYPE; #REQUIRED
273 h %LENGTH_TYPE; #REQUIRED
276 <!ELEMENT Layout EMPTY>
278 nx %UINT_TYPE; #REQUIRED
279 ny %UINT_TYPE; #REQUIRED
280 x0 %LENGTH_TYPE; "0 pt"
281 y0 %LENGTH_TYPE; "0 pt"
282 dx %LENGTH_TYPE; "0 pt"
283 dy %LENGTH_TYPE; "0 pt"
287 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
288 <!-- Objects Section -->
289 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
290 <!ENTITY % object_class_element "Object-text |
298 <!ELEMENT Objects ((%object_class_element;)*)>
300 id %STRING_TYPE; #REQUIRED
301 rotate %BOOLEAN_TYPE; #REQUIRED
304 <!ENTITY % position_attrs
305 "x %LENGTH_TYPE; #REQUIRED
306 y %LENGTH_TYPE; #REQUIRED"
309 <!ENTITY % size_attrs
310 "w %LENGTH_TYPE; #REQUIRED
311 h %LENGTH_TYPE; #REQUIRED"
314 <!ENTITY % line_attrs
315 "line_width %LENGTH_TYPE; #IMPLIED
316 line_color %UINT_TYPE; #IMPLIED
317 line_color_field %STRING_TYPE; #IMPLIED"
320 <!ENTITY % fill_attrs
321 "fill_color %UINT_TYPE; #IMPLIED
322 fill_color_field %STRING_TYPE; #IMPLIED"
325 <!ENTITY % affine_attrs
326 "a0 %FLOAT_TYPE; #IMPLIED
327 a1 %FLOAT_TYPE; #IMPLIED
328 a2 %FLOAT_TYPE; #IMPLIED
329 a3 %FLOAT_TYPE; #IMPLIED
330 a4 %FLOAT_TYPE; #IMPLIED
331 a5 %FLOAT_TYPE; #IMPLIED"
334 <!ENTITY % shadow_attrs
335 "shadow %BOOLEAN_TYPE; #IMPLIED
336 shadow_x %FLOAT_TYPE; #IMPLIED
337 shadow_y %FLOAT_TYPE; #IMPLIED
338 shadow_color %UINT_TYPE; #IMPLIED
339 shadow_opacity %FLOAT_TYPE; #IMPLIED"
342 <!ELEMENT Object-text (Span)>
343 <!ATTLIST Object-text
346 justify %JUSTIFY_TYPE; #REQUIRED
347 auto_shrink %BOOLEAN_TYPE; #IMPLIED
352 <!ELEMENT Object-box EMPTY>
362 <!ELEMENT Object-ellipse EMPTY>
363 <!ATTLIST Object-ellipse
372 <!ELEMENT Object-line EMPTY>
373 <!ATTLIST Object-line
375 dx %LENGTH_TYPE; #REQUIRED
376 dy %LENGTH_TYPE; #REQUIRED
382 <!ELEMENT Object-image EMPTY>
383 <!ATTLIST Object-image
386 src %STRING_TYPE; #IMPLIED
387 field %STRING_TYPE; #IMPLIED
388 embed %BOOLEAN_TYPE; #IMPLIED
393 <!ELEMENT Object-barcode EMPTY>
394 <!ATTLIST Object-barcode
397 backend %BC_BACKEND_TYPE; #REQUIRED
398 style %BC_STYLE_TYPE; #REQUIRED
399 text %BOOLEAN_TYPE; #REQUIRED
400 checksum %BOOLEAN_TYPE; #REQUIRED
401 color %UINT_TYPE; #IMPLIED
402 color_field %STRING_TYPE; #IMPLIED
403 data %STRING_TYPE; #IMPLIED
404 field %STRING_TYPE; #IMPLIED
405 format %UINT_TYPE; #IMPLIED
412 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
413 <!-- Merge Section -->
414 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
415 <!ELEMENT Merge EMPTY>
417 type %STRING_TYPE; #REQUIRED
418 src %STRING_TYPE; #IMPLIED
421 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
422 <!-- Data Section -->
423 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
424 <!ENTITY % data_element "Pixdata | File">
426 <!ELEMENT Data (%data_element;)*>
428 <!-- Inline Pixdata -->
429 <!ELEMENT Pixdata (#PCDATA)>
431 name %STRING_TYPE; #REQUIRED
432 encoding %DATA_ENCODING_TYPE; "Base64"
436 <!ELEMENT File (#PCDATA)>
438 name %STRING_TYPE; #REQUIRED
439 format %FILE_FORMAT_TYPE; "SVG"
443 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
444 <!-- Text elements -->
445 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
446 <!ENTITY % text_element "#PCDATA | Span | Field | NL">
448 <!ELEMENT Span (%text_element;)*>
450 font_family %STRING_TYPE; #IMPLIED
451 font_size %LENGTH_TYPE; #IMPLIED
452 font_weight %FONT_WEIGHT_TYPE; #IMPLIED
453 font_italic %BOOLEAN_TYPE; #IMPLIED
454 color %UINT_TYPE; #IMPLIED
455 color_field %STRING_TYPE; #IMPLIED
456 line_spacing %LENGTH_TYPE; #IMPLIED
459 <!ELEMENT Field EMPTY>
461 name %STRING_TYPE; #REQUIRED