Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/odf/attrconverters.py: 32%
186 statements
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
1# -*- coding: utf-8 -*-
2# Copyright (C) 2006-2013 Søren Roug, European Environment Agency
3#
4# This library is free software; you can redistribute it and/or
5# modify it under the terms of the GNU Lesser General Public
6# License as published by the Free Software Foundation; either
7# version 2.1 of the License, or (at your option) any later version.
8#
9# This library is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# Lesser General Public License for more details.
13#
14# You should have received a copy of the GNU Lesser General Public
15# License along with this library; if not, write to the Free Software
16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17#
18# Contributor(s):
19#
21import sys, os.path
22sys.path.append(os.path.dirname(__file__))
23from odf.namespaces import *
24import re, types
26pattern_color = re.compile(r'#[0-9a-fA-F]{6}')
27pattern_vector3D = re.compile(r'\([ ]*-?([0-9]+(\.[0-9]*)?|\.[0-9]+)([ ]+-?([0-9]+(\.[0-9]*)?|\.[0-9]+)){2}[ ]*\)')
29def make_NCName(arg):
30 for c in (':',' '):
31 arg = arg.replace(c,"_%x_" % ord(c))
32 return arg
34def cnv_angle(attribute, arg, element):
35 if sys.version_info[0]==2:
36 return unicode(arg)
37 else:
38 return str(arg)
40def cnv_anyURI(attribute, arg, element):
41 return str(arg)
43def cnv_boolean(attribute, arg, element):
44 """ XML Schema Part 2: Datatypes Second Edition
45 An instance of a datatype that is defined as boolean can have the
46 following legal literals {true, false, 1, 0}
47 """
48 if str(arg).lower() in ("0","false","no"):
49 return "false"
50 if str(arg).lower() in ("1","true","yes"):
51 return "true"
52 raise ValueError( "'%s' not allowed as Boolean value for %s" % (str(arg), attribute[1]))
54# Potentially accept color values
55def cnv_color(attribute, arg, element):
56 """ A RGB color in conformance with §5.9.11 of [XSL], that is a RGB color in notation “#rrggbb”, where
57 rr, gg and bb are 8-bit hexadecimal digits.
58 """
59 return str(arg)
61def cnv_configtype(attribute, arg, element):
62 if str(arg) not in ("boolean", "short", "int", "long",
63 "double", "string", "datetime", "base64Binary"):
64 raise ValueError( "'%s' not allowed" % str(arg))
65 return str(arg)
67def cnv_data_source_has_labels(attribute, arg, element):
68 if str(arg) not in ("none","row","column","both"):
69 raise ValueError( "'%s' not allowed" % str(arg))
70 return str(arg)
72# Understand different date formats
73def cnv_date(attribute, arg, element):
74 """ A dateOrDateTime value is either an [xmlschema-2] date value or an [xmlschema-2] dateTime
75 value.
76 """
77 return str(arg)
79def cnv_dateTime(attribute, arg, element):
80 """ A dateOrDateTime value is either an [xmlschema-2] date value or an [xmlschema-2] dateTime
81 value.
82 """
83 return str(arg)
85def cnv_double(attribute, arg, element):
86 return str(arg)
88def cnv_draw_aspect(attribute, arg, element):
89 if str(arg) not in ("content", "thumbnail", "icon", "print-view"):
90 raise ValueError( "'%s' not allowed" % str(arg))
91 return str(arg)
93def cnv_duration(attribute, arg, element):
94 return str(arg)
96def cnv_family(attribute, arg, element):
97 """ A style family """
98 if str(arg) not in ("text", "paragraph", "section", "ruby", "table", "table-column", "table-row", "table-cell", 98 ↛ 100line 98 didn't jump to line 100, because the condition on line 98 was never true
99 "graphic", "presentation", "drawing-page", "chart"):
100 raise ValueError( "'%s' not allowed" % str(arg))
101 return str(arg)
103def __save_prefix(attribute, arg, element):
104 prefix = arg.split(':',1)[0]
105 if prefix == arg:
106 return arg
107 namespace = element.get_knownns(prefix)
108 if namespace is None:
109 #raise ValueError( "'%s' is an unknown prefix" % str(prefix))
110 return str(arg)
111 p = element.get_nsprefix(namespace)
112 return str(arg)
114def cnv_formula(attribute, arg, element):
115 """ A string containing a formula. Formulas do not have a predefined syntax, but the string should
116 begin with a namespace prefix, followed by a “:” (COLON, U+003A) separator, followed by the text
117 of the formula. The namespace bound to the prefix determines the syntax and semantics of the
118 formula.
119 """
120 return __save_prefix(attribute, arg, element)
122def cnv_ID(attribute, arg, element):
123 return str(arg)
125def cnv_IDREF(attribute, arg, element):
126 return str(arg)
128def cnv_integer(attribute, arg, element):
129 return str(arg)
131pattern_language = re.compile(r'[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*')
133def cnv_language(attribute, arg, element):
134 global pattern_language
135 if not pattern_language.match(arg):
136 raise ValueError( "'%s' is not a valid language token" % arg)
137 return arg
139def cnv_legend_position(attribute, arg, element):
140 if str(arg) not in ("start", "end", "top", "bottom", "top-start", "bottom-start", "top-end", "bottom-end"):
141 raise ValueError( "'%s' not allowed" % str(arg))
142 return str(arg)
144pattern_length = re.compile(r'-?([0-9]+(\.[0-9]*)?|\.[0-9]+)((cm)|(mm)|(in)|(pt)|(pc)|(px))')
146def cnv_length(attribute, arg, element):
147 """ A (positive or negative) physical length, consisting of magnitude and unit, in conformance with the
148 Units of Measure defined in §5.9.13 of [XSL].
149 """
150 global pattern_length
151 if not pattern_length.match(arg):
152 raise ValueError( "'%s' is not a valid length" % arg)
153 return arg
155def cnv_lengthorpercent(attribute, arg, element):
156 failed = False
157 try: return cnv_length(attribute, arg, element)
158 except: failed = True
159 try: return cnv_percent(attribute, arg, element)
160 except: failed = True
161 if failed:
162 raise ValueError( "'%s' is not a valid length or percent" % arg)
163 return arg
165def cnv_list_linkage_type(attribute, arg, element):
166 if arg not in ('selection','selection-indices'):
167 raise ValueError( "'%s' is not either 'selection' or 'selection-indices'" % arg)
168 return str(arg)
170def cnv_metavaluetype(attribute, arg, element):
171 if str(arg) not in ("float", "date", "time", "boolean", "string"):
172 raise ValueError( "'%s' not allowed" % str(arg))
173 return str(arg)
175def cnv_major_minor(attribute, arg, element):
176 if arg not in ('major','minor'):
177 raise ValueError( "'%s' is not either 'minor' or 'major'" % arg)
178 return str(arg)
180pattern_namespacedToken = re.compile(r'[0-9a-zA-Z_]+:[0-9a-zA-Z._\-]+')
182def cnv_namespacedToken(attribute, arg, element):
183 global pattern_namespacedToken
185 if not pattern_namespacedToken.match(arg):
186 raise ValueError( "'%s' is not a valid namespaced token" % arg)
187 return __save_prefix(attribute, arg, element)
189def cnv_NCName(attribute, arg, element):
190 """ NCName is defined in http://www.w3.org/TR/REC-xml-names/#NT-NCName
191 Essentially an XML name minus ':'
192 """
193 if (sys.version_info[0]==3 and isinstance(arg, str)) or (sys.version_info[0]==2 and type(arg) in types.StringTypes): 193 ↛ 196line 193 didn't jump to line 196, because the condition on line 193 was never false
194 return make_NCName(arg)
195 else:
196 return arg.getAttrNS(STYLENS, 'name')
198# This function takes either an instance of a style (preferred)
199# or a text string naming the style. If it is a text string, then it must
200# already have been converted to an NCName
201# The text-string argument is mainly for when we build a structure from XML
202def cnv_StyleNameRef(attribute, arg, element):
203 try:
204 return arg.getAttrNS(STYLENS, 'name')
205 except:
206 return arg
208# This function takes either an instance of a style (preferred)
209# or a text string naming the style. If it is a text string, then it must
210# already have been converted to an NCName
211# The text-string argument is mainly for when we build a structure from XML
212def cnv_DrawNameRef(attribute, arg, element):
213 try:
214 return arg.getAttrNS(DRAWNS, 'name')
215 except:
216 return arg
218# Must accept list of Style objects
219def cnv_NCNames(attribute, arg, element):
220 return ' '.join(arg)
222def cnv_nonNegativeInteger(attribute, arg, element):
223 return str(arg)
225pattern_percent = re.compile(r'-?([0-9]+(\.[0-9]*)?|\.[0-9]+)%')
227def cnv_percent(attribute, arg, element):
228 global pattern_percent
229 if not pattern_percent.match(arg):
230 raise ValueError( "'%s' is not a valid length" % arg)
231 return arg
233# Real one doesn't allow floating point values
234pattern_points = re.compile(r'-?[0-9]+,-?[0-9]+([ ]+-?[0-9]+,-?[0-9]+)*')
235#pattern_points = re.compile(r'-?[0-9.]+,-?[0-9.]+([ ]+-?[0-9.]+,-?[0-9.]+)*')
236def cnv_points(attribute, arg, element):
237 global pattern_points
238 if (sys.version_info[0]==3 and isinstance(arg, str)) or (sys.version_info[0]==2 and type(arg) in types.StringTypes):
239 if not pattern_points.match(arg):
240 raise ValueError( "x,y are separated by a comma and the points are separated by white spaces")
241 return arg
242 else:
243 try:
244 strarg = ' '.join([ "%d,%d" % p for p in arg])
245 except:
246 raise ValueError( "Points must be string or [(0,0),(1,1)] - not %s" % arg)
247 return strarg
249def cnv_positiveInteger(attribute, arg, element):
250 return str(arg)
252def cnv_rowOrCol(attribute, arg, element):
253 if str(arg) not in ("row","column"):
254 raise ValueError( "'%s' not allowed" % str(arg))
255 return str(arg)
257def cnv_string(attribute, arg, element):
258 if sys.version_info[0]==2: 258 ↛ 259line 258 didn't jump to line 259, because the condition on line 258 was never true
259 return unicode(arg)
260 else:
261 return str(arg)
263def cnv_stroke_linecap(attribute, arg, element):
264 if str(arg) not in ("butt", "square", "round"):
265 raise ValueError( "'%s' not allowed" % str(arg))
266 return str(arg)
268def cnv_textnoteclass(attribute, arg, element):
269 if str(arg) not in ("footnote", "endnote"):
270 raise ValueError( "'%s' not allowed" % str(arg))
271 return str(arg)
273# Understand different time formats
274def cnv_time(attribute, arg, element):
275 return str(arg)
277def cnv_token(attribute, arg, element):
278 return str(arg)
280pattern_viewbox = re.compile(r'-?[0-9]+([ ]+-?[0-9]+){3}$')
282def cnv_viewbox(attribute, arg, element):
283 global pattern_viewbox
284 if not pattern_viewbox.match(arg):
285 raise ValueError( "viewBox must be four integers separated by whitespaces")
286 return arg
288def cnv_xlinkshow(attribute, arg, element):
289 if str(arg) not in ("new", "replace", "embed"):
290 raise ValueError( "'%s' not allowed" % str(arg))
291 return str(arg)
293def cnv_xlinktype(attribute, arg, element):
294 if arg != "simple":
295 raise ValueError( "Value of '%s' must be 'simple'" % attribute[1])
296 return arg
299attrconverters = {
300 ((ANIMNS,u'audio-level'), None): cnv_double,
301 ((ANIMNS,u'color-interpolation'), None): cnv_string,
302 ((ANIMNS,u'color-interpolation-direction'), None): cnv_string,
303 ((ANIMNS,u'command'), None): cnv_string,
304 ((ANIMNS,u'formula'), None): cnv_string,
305 ((ANIMNS,u'id'), None): cnv_ID,
306 ((ANIMNS,u'iterate-interval'), None): cnv_duration,
307 ((ANIMNS,u'iterate-type'), None): cnv_string,
308 ((ANIMNS,u'name'), None): cnv_string,
309 ((ANIMNS,u'sub-item'), None): cnv_string,
310 ((ANIMNS,u'value'), None): cnv_string,
311# ((DBNS,u'type'), None): cnv_namespacedToken,
312 ((CHARTNS,u'angle-offset'), None): cnv_angle,
313 ((CHARTNS,u'automatic-content'), None): cnv_boolean,
314 ((CHARTNS,u'auto-position'), None): cnv_boolean,
315 ((CHARTNS,u'auto-size'), None): cnv_boolean,
316 ((CHARTNS,u'axis-label-position'), None): cnv_string, # Multi-value
317 ((CHARTNS,u'axis-position'), None): cnv_string, # Multi-value
318 ((CHARTNS,u'attached-axis'), None): cnv_string,
319 ((CHARTNS,u'class'), (CHARTNS,u'grid')): cnv_major_minor,
320 ((CHARTNS,u'class'), None): cnv_namespacedToken,
321 ((CHARTNS,u'column-mapping'), None): cnv_string,
322 ((CHARTNS,u'connect-bars'), None): cnv_boolean,
323 ((CHARTNS,u'data-label-number'), None): cnv_string,
324 ((CHARTNS,u'data-label-symbol'), None): cnv_boolean,
325 ((CHARTNS,u'data-label-text'), None): cnv_boolean,
326 ((CHARTNS,u'data-source-has-labels'), None): cnv_data_source_has_labels,
327 ((CHARTNS,u'deep'), None): cnv_boolean,
328 ((CHARTNS,u'dimension'), None): cnv_string,
329 ((CHARTNS,u'display-equation'), None): cnv_boolean,
330 ((CHARTNS,u'display-label'), None): cnv_boolean,
331 ((CHARTNS,u'display-r-square'), None): cnv_boolean,
332 ((CHARTNS,u'error-category'), None): cnv_string,
333 ((CHARTNS,u'error-lower-indicator'), None): cnv_boolean,
334 ((CHARTNS,u'error-lower-limit'), None): cnv_string,
335 ((CHARTNS,u'error-margin'), None): cnv_string,
336 ((CHARTNS,u'error-percentage'), None): cnv_string,
337 ((CHARTNS,u'error-lower-range'), None): cnv_string,
338 ((CHARTNS,u'error-upper-indicator'), None): cnv_boolean,
339 ((CHARTNS,u'error-upper-limit'), None): cnv_string,
340 ((CHARTNS,u'error-upper-range'), None): cnv_string,
341 ((CHARTNS,u'gap-width'), None): cnv_string,
342 ((CHARTNS,u'group-bars-per-axis'), None): cnv_boolean,
343 ((CHARTNS,u'hole-size'), None): cnv_percent,
344 ((CHARTNS,u'include-hidden-cells'), None): cnv_boolean,
345 ((CHARTNS,u'interpolation'), None): cnv_string,
346 ((CHARTNS,u'interval-major'), None): cnv_string,
347 ((CHARTNS,u'interval-minor-divisor'), None): cnv_string,
348 ((CHARTNS,u'japanese-candle-stick'), None): cnv_boolean,
349 ((CHARTNS,u'label-arrangement'), None): cnv_string,
350 ((CHARTNS,u'label-cell-address'), None): cnv_string,
351 ((CHARTNS,u'label-position'), None): cnv_string, # Multi-value
352 ((CHARTNS,u'label-position-negative'), None): cnv_string, # Multi-value
353 ((CHARTNS,u'legend-align'), None): cnv_string,
354 ((CHARTNS,u'legend-position'), None): cnv_legend_position,
355 ((CHARTNS,u'lines'), None): cnv_boolean,
356 ((CHARTNS,u'link-data-style-to-source'), None): cnv_boolean,
357 ((CHARTNS,u'logarithmic'), None): cnv_boolean,
358 ((CHARTNS,u'maximum'), None): cnv_string,
359 ((CHARTNS,u'mean-value'), None): cnv_boolean,
360 ((CHARTNS,u'minimum'), None): cnv_string,
361 ((CHARTNS,u'name'), None): cnv_string,
362 ((CHARTNS,u'origin'), None): cnv_string,
363 ((CHARTNS,u'overlap'), None): cnv_string,
364 ((CHARTNS,u'percentage'), None): cnv_boolean,
365 ((CHARTNS,u'pie-offset'), None): cnv_string,
366 ((CHARTNS,u'regression-type'), None): cnv_string,
367 ((CHARTNS,u'repeated'), None): cnv_nonNegativeInteger,
368 ((CHARTNS,u'reverse-direction'), None): cnv_boolean,
369 ((CHARTNS,u'right-angled-axes'), None): cnv_boolean,
370 ((CHARTNS,u'row-mapping'), None): cnv_string,
371 ((CHARTNS,u'scale-text'), None): cnv_boolean,
372 ((CHARTNS,u'series-source'), None): cnv_string,
373 ((CHARTNS,u'solid-type'), None): cnv_string,
374 ((CHARTNS,u'sort-by-x-values'), None): cnv_boolean,
375 ((CHARTNS,u'spline-order'), None): cnv_string,
376 ((CHARTNS,u'spline-resolution'), None): cnv_string,
377 ((CHARTNS,u'stacked'), None): cnv_boolean,
378 ((CHARTNS,u'style-name'), None): cnv_StyleNameRef,
379 ((CHARTNS,u'symbol-height'), None): cnv_string,
380 ((CHARTNS,u'symbol-name'), None): cnv_string,
381 ((CHARTNS,u'symbol-type'), None): cnv_string,
382 ((CHARTNS,u'symbol-width'), None): cnv_string,
383 ((CHARTNS,u'text-overlap'), None): cnv_boolean,
384 ((CHARTNS,u'three-dimensional'), None): cnv_boolean,
385 ((CHARTNS,u'tick-mark-position'), None): cnv_string, # Multi-value
386 ((CHARTNS,u'tick-marks-major-inner'), None): cnv_boolean,
387 ((CHARTNS,u'tick-marks-major-outer'), None): cnv_boolean,
388 ((CHARTNS,u'tick-marks-minor-inner'), None): cnv_boolean,
389 ((CHARTNS,u'tick-marks-minor-outer'), None): cnv_boolean,
390 ((CHARTNS,u'treat-empty-cells'), None): cnv_string, # Multi-value
391 ((CHARTNS,u'values-cell-range-address'), None): cnv_string,
392 ((CHARTNS,u'vertical'), None): cnv_boolean,
393 ((CHARTNS,u'visible'), None): cnv_boolean,
394 ((CONFIGNS,u'name'), None): cnv_formula,
395 ((CONFIGNS,u'type'), None): cnv_configtype,
396 ((DR3DNS,u'ambient-color'), None): cnv_string,
397 ((DR3DNS,u'back-scale'), None): cnv_string,
398 ((DR3DNS,u'backface-culling'), None): cnv_string,
399 ((DR3DNS,u'center'), None): cnv_string,
400 ((DR3DNS,u'close-back'), None): cnv_boolean,
401 ((DR3DNS,u'close-front'), None): cnv_boolean,
402 ((DR3DNS,u'depth'), None): cnv_length,
403 ((DR3DNS,u'diffuse-color'), None): cnv_string,
404 ((DR3DNS,u'direction'), None): cnv_string,
405 ((DR3DNS,u'distance'), None): cnv_length,
406 ((DR3DNS,u'edge-rounding'), None): cnv_string,
407 ((DR3DNS,u'edge-rounding-mode'), None): cnv_string,
408 ((DR3DNS,u'emissive-color'), None): cnv_string,
409 ((DR3DNS,u'enabled'), None): cnv_boolean,
410 ((DR3DNS,u'end-angle'), None): cnv_string,
411 ((DR3DNS,u'focal-length'), None): cnv_length,
412 ((DR3DNS,u'horizontal-segments'), None): cnv_string,
413 ((DR3DNS,u'lighting-mode'), None): cnv_boolean,
414 ((DR3DNS,u'max-edge'), None): cnv_string,
415 ((DR3DNS,u'min-edge'), None): cnv_string,
416 ((DR3DNS,u'normals-direction'), None): cnv_string,
417 ((DR3DNS,u'normals-kind'), None): cnv_string,
418 ((DR3DNS,u'projection'), None): cnv_string,
419 ((DR3DNS,u'shade-mode'), None): cnv_string,
420 ((DR3DNS,u'shadow'), None): cnv_string,
421 ((DR3DNS,u'shadow-slant'), None): cnv_nonNegativeInteger,
422 ((DR3DNS,u'shininess'), None): cnv_string,
423 ((DR3DNS,u'size'), None): cnv_string,
424 ((DR3DNS,u'specular'), None): cnv_boolean,
425 ((DR3DNS,u'specular-color'), None): cnv_string,
426 ((DR3DNS,u'texture-filter'), None): cnv_string,
427 ((DR3DNS,u'texture-generation-mode-x'), None): cnv_string,
428 ((DR3DNS,u'texture-generation-mode-y'), None): cnv_string,
429 ((DR3DNS,u'texture-kind'), None): cnv_string,
430 ((DR3DNS,u'texture-mode'), None): cnv_string,
431 ((DR3DNS,u'transform'), None): cnv_string,
432 ((DR3DNS,u'vertical-segments'), None): cnv_string,
433 ((DR3DNS,u'vpn'), None): cnv_string,
434 ((DR3DNS,u'vrp'), None): cnv_string,
435 ((DR3DNS,u'vup'), None): cnv_string,
436 ((DRAWNS,u'align'), None): cnv_string,
437 ((DRAWNS,u'angle'), None): cnv_integer,
438 ((DRAWNS,u'archive'), None): cnv_string,
439 ((DRAWNS,u'auto-grow-height'), None): cnv_boolean,
440 ((DRAWNS,u'auto-grow-width'), None): cnv_boolean,
441 ((DRAWNS,u'background-size'), None): cnv_string,
442 ((DRAWNS,u'blue'), None): cnv_string,
443 ((DRAWNS,u'border'), None): cnv_string,
444 ((DRAWNS,u'caption-angle'), None): cnv_string,
445 ((DRAWNS,u'caption-angle-type'), None): cnv_string,
446 ((DRAWNS,u'caption-escape'), None): cnv_string,
447 ((DRAWNS,u'caption-escape-direction'), None): cnv_string,
448 ((DRAWNS,u'caption-fit-line-length'), None): cnv_boolean,
449 ((DRAWNS,u'caption-gap'), None): cnv_string,
450 ((DRAWNS,u'caption-line-length'), None): cnv_length,
451 ((DRAWNS,u'caption-point-x'), None): cnv_string,
452 ((DRAWNS,u'caption-point-y'), None): cnv_string,
453 ((DRAWNS,u'caption-id'), None): cnv_IDREF,
454 ((DRAWNS,u'caption-type'), None): cnv_string,
455 ((DRAWNS,u'chain-next-name'), None): cnv_string,
456 ((DRAWNS,u'class-id'), None): cnv_string,
457 ((DRAWNS,u'class-names'), None): cnv_NCNames,
458 ((DRAWNS,u'code'), None): cnv_string,
459 ((DRAWNS,u'color'), None): cnv_string,
460 ((DRAWNS,u'color-inversion'), None): cnv_boolean,
461 ((DRAWNS,u'color-mode'), None): cnv_string,
462 ((DRAWNS,u'concave'), None): cnv_string,
463 ((DRAWNS,u'concentric-gradient-fill-allowed'), None): cnv_boolean,
464 ((DRAWNS,u'contrast'), None): cnv_string,
465 ((DRAWNS,u'control'), None): cnv_IDREF,
466 ((DRAWNS,u'copy-of'), None): cnv_string,
467 ((DRAWNS,u'corner-radius'), None): cnv_length,
468 ((DRAWNS,u'corners'), None): cnv_positiveInteger,
469 ((DRAWNS,u'cx'), None): cnv_string,
470 ((DRAWNS,u'cy'), None): cnv_string,
471 ((DRAWNS,u'data'), None): cnv_string,
472 ((DRAWNS,u'decimal-places'), None): cnv_string,
473 ((DRAWNS,u'display'), None): cnv_string,
474 ((DRAWNS,u'display-name'), None): cnv_string,
475 ((DRAWNS,u'distance'), None): cnv_lengthorpercent,
476 ((DRAWNS,u'dots1'), None): cnv_integer,
477 ((DRAWNS,u'dots1-length'), None): cnv_lengthorpercent,
478 ((DRAWNS,u'dots2'), None): cnv_integer,
479 ((DRAWNS,u'dots2-length'), None): cnv_lengthorpercent,
480 ((DRAWNS,u'draw-aspect'), None): cnv_draw_aspect,
481 ((DRAWNS,u'end-angle'), None): cnv_angle,
482 ((DRAWNS,u'end'), None): cnv_string,
483 ((DRAWNS,u'end-color'), None): cnv_string,
484 ((DRAWNS,u'end-glue-point'), None): cnv_nonNegativeInteger,
485 ((DRAWNS,u'end-guide'), None): cnv_length,
486 ((DRAWNS,u'end-intensity'), None): cnv_string,
487 ((DRAWNS,u'end-line-spacing-horizontal'), None): cnv_string,
488 ((DRAWNS,u'end-line-spacing-vertical'), None): cnv_string,
489 ((DRAWNS,u'end-shape'), None): cnv_IDREF,
490 ((DRAWNS,u'engine'), None): cnv_namespacedToken,
491 ((DRAWNS,u'enhanced-path'), None): cnv_string,
492 ((DRAWNS,u'escape-direction'), None): cnv_string,
493 ((DRAWNS,u'extrusion-allowed'), None): cnv_boolean,
494 ((DRAWNS,u'extrusion-brightness'), None): cnv_string,
495 ((DRAWNS,u'extrusion'), None): cnv_boolean,
496 ((DRAWNS,u'extrusion-color'), None): cnv_boolean,
497 ((DRAWNS,u'extrusion-depth'), None): cnv_double,
498 ((DRAWNS,u'extrusion-diffusion'), None): cnv_string,
499 ((DRAWNS,u'extrusion-first-light-direction'), None): cnv_string,
500 ((DRAWNS,u'extrusion-first-light-harsh'), None): cnv_boolean,
501 ((DRAWNS,u'extrusion-first-light-level'), None): cnv_string,
502 ((DRAWNS,u'extrusion-light-face'), None): cnv_boolean,
503 ((DRAWNS,u'extrusion-metal'), None): cnv_boolean,
504 ((DRAWNS,u'extrusion-number-of-line-segments'), None): cnv_integer,
505 ((DRAWNS,u'extrusion-origin'), None): cnv_double,
506 ((DRAWNS,u'extrusion-rotation-angle'), None): cnv_double,
507 ((DRAWNS,u'extrusion-rotation-center'), None): cnv_string,
508 ((DRAWNS,u'extrusion-second-light-direction'), None): cnv_string,
509 ((DRAWNS,u'extrusion-second-light-harsh'), None): cnv_boolean,
510 ((DRAWNS,u'extrusion-second-light-level'), None): cnv_string,
511 ((DRAWNS,u'extrusion-shininess'), None): cnv_string,
512 ((DRAWNS,u'extrusion-skew'), None): cnv_double,
513 ((DRAWNS,u'extrusion-specularity'), None): cnv_string,
514 ((DRAWNS,u'extrusion-viewpoint'), None): cnv_string,
515 ((DRAWNS,u'fill'), None): cnv_string,
516 ((DRAWNS,u'fill-color'), None): cnv_string,
517 ((DRAWNS,u'fill-gradient-name'), None): cnv_string,
518 ((DRAWNS,u'fill-hatch-name'), None): cnv_string,
519 ((DRAWNS,u'fill-hatch-solid'), None): cnv_boolean,
520 ((DRAWNS,u'fill-image-height'), None): cnv_lengthorpercent,
521 ((DRAWNS,u'fill-image-name'), None): cnv_DrawNameRef,
522 ((DRAWNS,u'fill-image-ref-point'), None): cnv_string,
523 ((DRAWNS,u'fill-image-ref-point-x'), None): cnv_string,
524 ((DRAWNS,u'fill-image-ref-point-y'), None): cnv_string,
525 ((DRAWNS,u'fill-image-width'), None): cnv_lengthorpercent,
526 ((DRAWNS,u'filter-name'), None): cnv_string,
527 ((DRAWNS,u'fit-to-contour'), None): cnv_boolean,
528 ((DRAWNS,u'fit-to-size'), None): cnv_string, # ODF 1.2 says boolean
529 ((DRAWNS,u'formula'), None): cnv_string,
530 ((DRAWNS,u'frame-display-border'), None): cnv_boolean,
531 ((DRAWNS,u'frame-display-scrollbar'), None): cnv_boolean,
532 ((DRAWNS,u'frame-margin-horizontal'), None): cnv_string,
533 ((DRAWNS,u'frame-margin-vertical'), None): cnv_string,
534 ((DRAWNS,u'frame-name'), None): cnv_string,
535 ((DRAWNS,u'gamma'), None): cnv_string,
536 ((DRAWNS,u'glue-point-leaving-directions'), None): cnv_string,
537 ((DRAWNS,u'glue-point-type'), None): cnv_string,
538 ((DRAWNS,u'glue-points'), None): cnv_string,
539 ((DRAWNS,u'gradient-step-count'), None): cnv_string,
540 ((DRAWNS,u'green'), None): cnv_string,
541 ((DRAWNS,u'guide-distance'), None): cnv_string,
542 ((DRAWNS,u'guide-overhang'), None): cnv_length,
543 ((DRAWNS,u'handle-mirror-horizontal'), None): cnv_boolean,
544 ((DRAWNS,u'handle-mirror-vertical'), None): cnv_boolean,
545 ((DRAWNS,u'handle-polar'), None): cnv_string,
546 ((DRAWNS,u'handle-position'), None): cnv_string,
547 ((DRAWNS,u'handle-radius-range-maximum'), None): cnv_string,
548 ((DRAWNS,u'handle-radius-range-minimum'), None): cnv_string,
549 ((DRAWNS,u'handle-range-x-maximum'), None): cnv_string,
550 ((DRAWNS,u'handle-range-x-minimum'), None): cnv_string,
551 ((DRAWNS,u'handle-range-y-maximum'), None): cnv_string,
552 ((DRAWNS,u'handle-range-y-minimum'), None): cnv_string,
553 ((DRAWNS,u'handle-switched'), None): cnv_boolean,
554# ((DRAWNS,u'id'), None): cnv_ID,
555# ((DRAWNS,u'id'), None): cnv_nonNegativeInteger, # ?? line 6581 in RNG
556 ((DRAWNS,u'id'), None): cnv_string,
557 ((DRAWNS,u'image-opacity'), None): cnv_string,
558 ((DRAWNS,u'kind'), None): cnv_string,
559 ((DRAWNS,u'layer'), None): cnv_string,
560 ((DRAWNS,u'line-distance'), None): cnv_string,
561 ((DRAWNS,u'line-skew'), None): cnv_string,
562 ((DRAWNS,u'luminance'), None): cnv_string,
563 ((DRAWNS,u'marker-end-center'), None): cnv_boolean,
564 ((DRAWNS,u'marker-end'), None): cnv_string,
565 ((DRAWNS,u'marker-end-width'), None): cnv_length,
566 ((DRAWNS,u'marker-start-center'), None): cnv_boolean,
567 ((DRAWNS,u'marker-start'), None): cnv_string,
568 ((DRAWNS,u'marker-start-width'), None): cnv_length,
569 ((DRAWNS,u'master-page-name'), None): cnv_StyleNameRef,
570 ((DRAWNS,u'may-script'), None): cnv_boolean,
571 ((DRAWNS,u'measure-align'), None): cnv_string,
572 ((DRAWNS,u'measure-vertical-align'), None): cnv_string,
573 ((DRAWNS,u'mime-type'), None): cnv_string,
574 ((DRAWNS,u'mirror-horizontal'), None): cnv_boolean,
575 ((DRAWNS,u'mirror-vertical'), None): cnv_boolean,
576 ((DRAWNS,u'modifiers'), None): cnv_string,
577 ((DRAWNS,u'name'), None): cnv_NCName,
578# ((DRAWNS,u'name'), None): cnv_string,
579 ((DRAWNS,u'nav-order'), None): cnv_IDREF,
580 ((DRAWNS,u'nohref'), None): cnv_string,
581 ((DRAWNS,u'notify-on-update-of-ranges'), None): cnv_string,
582 ((DRAWNS,u'object'), None): cnv_string,
583 ((DRAWNS,u'ole-draw-aspect'), None): cnv_string,
584 ((DRAWNS,u'opacity'), None): cnv_string,
585 ((DRAWNS,u'opacity-name'), None): cnv_string,
586 ((DRAWNS,u'page-number'), None): cnv_positiveInteger,
587 ((DRAWNS,u'parallel'), None): cnv_boolean,
588 ((DRAWNS,u'path-stretchpoint-x'), None): cnv_double,
589 ((DRAWNS,u'path-stretchpoint-y'), None): cnv_double,
590 ((DRAWNS,u'placing'), None): cnv_string,
591 ((DRAWNS,u'points'), None): cnv_points,
592 ((DRAWNS,u'protected'), None): cnv_boolean,
593 ((DRAWNS,u'recreate-on-edit'), None): cnv_boolean,
594 ((DRAWNS,u'red'), None): cnv_string,
595 ((DRAWNS,u'rotation'), None): cnv_integer,
596 ((DRAWNS,u'secondary-fill-color'), None): cnv_string,
597 ((DRAWNS,u'shadow'), None): cnv_string,
598 ((DRAWNS,u'shadow-color'), None): cnv_string,
599 ((DRAWNS,u'shadow-offset-x'), None): cnv_length,
600 ((DRAWNS,u'shadow-offset-y'), None): cnv_length,
601 ((DRAWNS,u'shadow-opacity'), None): cnv_string,
602 ((DRAWNS,u'shape-id'), None): cnv_IDREF,
603 ((DRAWNS,u'sharpness'), None): cnv_string,
604 ((DRAWNS,u'show-unit'), None): cnv_boolean,
605 ((DRAWNS,u'start-angle'), None): cnv_angle,
606 ((DRAWNS,u'start'), None): cnv_string,
607 ((DRAWNS,u'start-color'), None): cnv_string,
608 ((DRAWNS,u'start-glue-point'), None): cnv_nonNegativeInteger,
609 ((DRAWNS,u'start-guide'), None): cnv_length,
610 ((DRAWNS,u'start-intensity'), None): cnv_string,
611 ((DRAWNS,u'start-line-spacing-horizontal'), None): cnv_string,
612 ((DRAWNS,u'start-line-spacing-vertical'), None): cnv_string,
613 ((DRAWNS,u'start-shape'), None): cnv_IDREF,
614 ((DRAWNS,u'stroke'), None): cnv_string,
615 ((DRAWNS,u'stroke-dash'), None): cnv_string,
616 ((DRAWNS,u'stroke-dash-names'), None): cnv_string,
617 ((DRAWNS,u'stroke-linejoin'), None): cnv_string,
618 ((DRAWNS,u'style'), None): cnv_string,
619 ((DRAWNS,u'style-name'), None): cnv_StyleNameRef,
620 ((DRAWNS,u'symbol-color'), None): cnv_string,
621 ((DRAWNS,u'text-areas'), None): cnv_string,
622 ((DRAWNS,u'text-path-allowed'), None): cnv_boolean,
623 ((DRAWNS,u'text-path'), None): cnv_boolean,
624 ((DRAWNS,u'text-path-mode'), None): cnv_string,
625 ((DRAWNS,u'text-path-same-letter-heights'), None): cnv_boolean,
626 ((DRAWNS,u'text-path-scale'), None): cnv_string,
627 ((DRAWNS,u'text-rotate-angle'), None): cnv_double,
628 ((DRAWNS,u'text-style-name'), None): cnv_StyleNameRef,
629 ((DRAWNS,u'textarea-horizontal-align'), None): cnv_string,
630 ((DRAWNS,u'textarea-vertical-align'), None): cnv_string,
631 ((DRAWNS,u'tile-repeat-offset'), None): cnv_string,
632 ((DRAWNS,u'transform'), None): cnv_string,
633 ((DRAWNS,u'type'), None): cnv_string,
634 ((DRAWNS,u'unit'), None): cnv_string,
635 ((DRAWNS,u'value'), None): cnv_string,
636 ((DRAWNS,u'visible-area-height'), None): cnv_string,
637 ((DRAWNS,u'visible-area-left'), None): cnv_string,
638 ((DRAWNS,u'visible-area-top'), None): cnv_string,
639 ((DRAWNS,u'visible-area-width'), None): cnv_string,
640 ((DRAWNS,u'wrap-influence-on-position'), None): cnv_string,
641 ((DRAWNS,u'z-index'), None): cnv_nonNegativeInteger,
642 ((FONS,u'background-color'), None): cnv_string,
643 ((FONS,u'border-bottom'), None): cnv_string,
644 ((FONS,u'border'), None): cnv_string,
645 ((FONS,u'border-left'), None): cnv_string,
646 ((FONS,u'border-right'), None): cnv_string,
647 ((FONS,u'border-top'), None): cnv_string,
648 ((FONS,u'break-after'), None): cnv_string,
649 ((FONS,u'break-before'), None): cnv_string,
650 ((FONS,u'clip'), None): cnv_string,
651 ((FONS,u'color'), None): cnv_string,
652 ((FONS,u'column-count'), None): cnv_positiveInteger,
653 ((FONS,u'column-gap'), None): cnv_length,
654 ((FONS,u'country'), None): cnv_token,
655 ((FONS,u'end-indent'), None): cnv_length,
656 ((FONS,u'font-family'), None): cnv_string,
657 ((FONS,u'font-size'), None): cnv_string,
658 ((FONS,u'font-style'), None): cnv_string,
659 ((FONS,u'font-variant'), None): cnv_string,
660 ((FONS,u'font-weight'), None): cnv_string,
661 ((FONS,u'height'), None): cnv_string,
662 ((FONS,u'hyphenate'), None): cnv_boolean,
663 ((FONS,u'hyphenation-keep'), None): cnv_string,
664 ((FONS,u'hyphenation-ladder-count'), None): cnv_string,
665 ((FONS,u'hyphenation-push-char-count'), None): cnv_string,
666 ((FONS,u'hyphenation-remain-char-count'), None): cnv_string,
667 ((FONS,u'keep-together'), None): cnv_string,
668 ((FONS,u'keep-with-next'), None): cnv_string,
669 ((FONS,u'language'), None): cnv_token,
670 ((FONS,u'letter-spacing'), None): cnv_string,
671 ((FONS,u'line-height'), None): cnv_string,
672 ((FONS,u'margin-bottom'), None): cnv_string,
673 ((FONS,u'margin'), None): cnv_string,
674 ((FONS,u'margin-left'), None): cnv_string,
675 ((FONS,u'margin-right'), None): cnv_string,
676 ((FONS,u'margin-top'), None): cnv_string,
677 ((FONS,u'max-height'), None): cnv_string,
678 ((FONS,u'max-width'), None): cnv_string,
679 ((FONS,u'min-height'), None): cnv_length,
680 ((FONS,u'min-width'), None): cnv_string,
681 ((FONS,u'orphans'), None): cnv_string,
682 ((FONS,u'padding-bottom'), None): cnv_string,
683 ((FONS,u'padding'), None): cnv_string,
684 ((FONS,u'padding-left'), None): cnv_string,
685 ((FONS,u'padding-right'), None): cnv_string,
686 ((FONS,u'padding-top'), None): cnv_string,
687 ((FONS,u'page-height'), None): cnv_length,
688 ((FONS,u'page-width'), None): cnv_length,
689 ((FONS,u'script'), None): cnv_token,
690 ((FONS,u'space-after'), None): cnv_length,
691 ((FONS,u'space-before'), None): cnv_length,
692 ((FONS,u'start-indent'), None): cnv_length,
693 ((FONS,u'text-align'), None): cnv_string,
694 ((FONS,u'text-align-last'), None): cnv_string,
695 ((FONS,u'text-indent'), None): cnv_string,
696 ((FONS,u'text-shadow'), None): cnv_string,
697 ((FONS,u'text-transform'), None): cnv_string,
698 ((FONS,u'widows'), None): cnv_string,
699 ((FONS,u'width'), None): cnv_string,
700 ((FONS,u'wrap-option'), None): cnv_string,
701 ((FORMNS,u'allow-deletes'), None): cnv_boolean,
702 ((FORMNS,u'allow-inserts'), None): cnv_boolean,
703 ((FORMNS,u'allow-updates'), None): cnv_boolean,
704 ((FORMNS,u'apply-design-mode'), None): cnv_boolean,
705 ((FORMNS,u'apply-filter'), None): cnv_boolean,
706 ((FORMNS,u'auto-complete'), None): cnv_boolean,
707 ((FORMNS,u'automatic-focus'), None): cnv_boolean,
708 ((FORMNS,u'bound-column'), None): cnv_string,
709 ((FORMNS,u'button-type'), None): cnv_string,
710 ((FORMNS,u'command'), None): cnv_string,
711 ((FORMNS,u'command-type'), None): cnv_string,
712 ((FORMNS,u'control-implementation'), None): cnv_namespacedToken,
713 ((FORMNS,u'convert-empty-to-null'), None): cnv_boolean,
714 ((FORMNS,u'current-selected'), None): cnv_boolean,
715 ((FORMNS,u'current-state'), None): cnv_string,
716# ((FORMNS,u'current-value'), None): cnv_date,
717# ((FORMNS,u'current-value'), None): cnv_double,
718 ((FORMNS,u'current-value'), None): cnv_string,
719# ((FORMNS,u'current-value'), None): cnv_time,
720 ((FORMNS,u'data-field'), None): cnv_string,
721 ((FORMNS,u'datasource'), None): cnv_string,
722 ((FORMNS,u'default-button'), None): cnv_boolean,
723 ((FORMNS,u'delay-for-repeat'), None): cnv_duration,
724 ((FORMNS,u'detail-fields'), None): cnv_string,
725 ((FORMNS,u'disabled'), None): cnv_boolean,
726 ((FORMNS,u'dropdown'), None): cnv_boolean,
727 ((FORMNS,u'echo-char'), None): cnv_string,
728 ((FORMNS,u'enctype'), None): cnv_string,
729 ((FORMNS,u'escape-processing'), None): cnv_boolean,
730 ((FORMNS,u'filter'), None): cnv_string,
731 ((FORMNS,u'focus-on-click'), None): cnv_boolean,
732 ((FORMNS,u'for'), None): cnv_string,
733 ((FORMNS,u'id'), None): cnv_ID,
734 ((FORMNS,u'ignore-result'), None): cnv_boolean,
735 ((FORMNS,u'image-align'), None): cnv_string,
736 ((FORMNS,u'image-data'), None): cnv_anyURI,
737 ((FORMNS,u'image-position'), None): cnv_string,
738 ((FORMNS,u'is-tristate'), None): cnv_boolean,
739 ((FORMNS,u'label'), None): cnv_string,
740 ((FORMNS,u'linked-cell'), None): cnv_string,
741 ((FORMNS,u'list-linkage-type'), None): cnv_list_linkage_type,
742 ((FORMNS,u'list-source'), None): cnv_string,
743 ((FORMNS,u'list-source-type'), None): cnv_string,
744 ((FORMNS,u'master-fields'), None): cnv_string,
745 ((FORMNS,u'max-length'), None): cnv_nonNegativeInteger,
746# ((FORMNS,u'max-value'), None): cnv_date,
747# ((FORMNS,u'max-value'), None): cnv_double,
748 ((FORMNS,u'max-value'), None): cnv_string,
749# ((FORMNS,u'max-value'), None): cnv_time,
750 ((FORMNS,u'method'), None): cnv_string,
751# ((FORMNS,u'min-value'), None): cnv_date,
752# ((FORMNS,u'min-value'), None): cnv_double,
753 ((FORMNS,u'min-value'), None): cnv_string,
754# ((FORMNS,u'min-value'), None): cnv_time,
755 ((FORMNS,u'multi-line'), None): cnv_boolean,
756 ((FORMNS,u'multiple'), None): cnv_boolean,
757 ((FORMNS,u'name'), None): cnv_string,
758 ((FORMNS,u'navigation-mode'), None): cnv_string,
759 ((FORMNS,u'order'), None): cnv_string,
760 ((FORMNS,u'orientation'), None): cnv_string,
761 ((FORMNS,u'page-step-size'), None): cnv_positiveInteger,
762 ((FORMNS,u'printable'), None): cnv_boolean,
763 ((FORMNS,u'property-name'), None): cnv_string,
764 ((FORMNS,u'readonly'), None): cnv_boolean,
765 ((FORMNS,u'repeat'), None): cnv_boolean,
766 ((FORMNS,u'selected'), None): cnv_boolean,
767 ((FORMNS,u'size'), None): cnv_nonNegativeInteger,
768 ((FORMNS,u'source-cell-range'), None): cnv_string,
769 ((FORMNS,u'spin-button'), None): cnv_boolean,
770 ((FORMNS,u'state'), None): cnv_string,
771 ((FORMNS,u'step-size'), None): cnv_positiveInteger,
772 ((FORMNS,u'tab-cycle'), None): cnv_string,
773 ((FORMNS,u'tab-index'), None): cnv_nonNegativeInteger,
774 ((FORMNS,u'tab-stop'), None): cnv_boolean,
775 ((FORMNS,u'text-style-name'), None): cnv_StyleNameRef,
776 ((FORMNS,u'title'), None): cnv_string,
777 ((FORMNS,u'toggle'), None): cnv_boolean,
778 ((FORMNS,u'validation'), None): cnv_boolean,
779# ((FORMNS,u'value'), None): cnv_date,
780# ((FORMNS,u'value'), None): cnv_double,
781 ((FORMNS,u'value'), None): cnv_string,
782# ((FORMNS,u'value'), None): cnv_time,
783 ((FORMNS,u'visual-effect'), None): cnv_string,
784 ((FORMNS,u'xforms-list-source'), None): cnv_string,
785 ((FORMNS,u'xforms-submission'), None): cnv_string,
786 ((GRDDLNS,u'transformation'), None): cnv_string,
787 ((LOEXTNS,u'contextual-spacing'), None): cnv_boolean,
788 ((LOEXTNS,u'scale-to-X'), None): cnv_string,
789 ((LOEXTNS,u'scale-to-Y'), None): cnv_string,
790 ((MANIFESTNS,u'algorithm-name'), None): cnv_string,
791 ((MANIFESTNS,u'checksum'), None): cnv_string,
792 ((MANIFESTNS,u'checksum-type'), None): cnv_string,
793 ((MANIFESTNS,u'full-path'), None): cnv_string,
794 ((MANIFESTNS,u'initialisation-vector'), None): cnv_string,
795 ((MANIFESTNS,u'iteration-count'), None): cnv_nonNegativeInteger,
796 ((MANIFESTNS,u'key-derivation-name'), None): cnv_string,
797 ((MANIFESTNS,u'media-type'), None): cnv_string,
798 ((MANIFESTNS,u'preferred-view-mode'), None): cnv_string,
799 ((MANIFESTNS,u'salt'), None): cnv_string,
800 ((MANIFESTNS,u'size'), None): cnv_nonNegativeInteger,
801 ((MANIFESTNS,u'version'), None): cnv_string,
802 ((METANS,u'cell-count'), None): cnv_nonNegativeInteger,
803 ((METANS,u'character-count'), None): cnv_nonNegativeInteger,
804 ((METANS,u'date'), None): cnv_dateTime,
805 ((METANS,u'delay'), None): cnv_duration,
806 ((METANS,u'draw-count'), None): cnv_nonNegativeInteger,
807 ((METANS,u'frame-count'), None): cnv_nonNegativeInteger,
808 ((METANS,u'image-count'), None): cnv_nonNegativeInteger,
809 ((METANS,u'name'), None): cnv_string,
810 ((METANS,u'non-whitespace-character-count'), None): cnv_nonNegativeInteger,
811 ((METANS,u'object-count'), None): cnv_nonNegativeInteger,
812 ((METANS,u'ole-object-count'), None): cnv_nonNegativeInteger,
813 ((METANS,u'page-count'), None): cnv_nonNegativeInteger,
814 ((METANS,u'paragraph-count'), None): cnv_nonNegativeInteger,
815 ((METANS,u'row-count'), None): cnv_nonNegativeInteger,
816 ((METANS,u'sentence-count'), None): cnv_nonNegativeInteger,
817 ((METANS,u'syllable-count'), None): cnv_nonNegativeInteger,
818 ((METANS,u'table-count'), None): cnv_nonNegativeInteger,
819 ((METANS,u'value-type'), None): cnv_metavaluetype,
820 ((METANS,u'word-count'), None): cnv_nonNegativeInteger,
821 ((NUMBERNS,u'automatic-order'), None): cnv_boolean,
822 ((NUMBERNS,u'calendar'), None): cnv_string,
823 ((NUMBERNS,u'country'), None): cnv_token,
824 ((NUMBERNS,u'decimal-places'), None): cnv_integer,
825 ((NUMBERNS,u'decimal-replacement'), None): cnv_string,
826 ((NUMBERNS,u'denominator-value'), None): cnv_integer,
827 ((NUMBERNS,u'display-factor'), None): cnv_double,
828 ((NUMBERNS,u'format-source'), None): cnv_string,
829 ((NUMBERNS,u'grouping'), None): cnv_boolean,
830 ((NUMBERNS,u'language'), None): cnv_token,
831 ((NUMBERNS,u'min-denominator-digits'), None): cnv_integer,
832 ((NUMBERNS,u'min-exponent-digits'), None): cnv_integer,
833 ((NUMBERNS,u'min-integer-digits'), None): cnv_integer,
834 ((NUMBERNS,u'min-numerator-digits'), None): cnv_integer,
835 ((NUMBERNS,u'position'), None): cnv_integer,
836 ((NUMBERNS,u'possessive-form'), None): cnv_boolean,
837 ((NUMBERNS,u'rfc-language-tag'), None): cnv_language,
838 ((NUMBERNS,u'script'), None): cnv_token,
839 ((NUMBERNS,u'style'), None): cnv_string,
840 ((NUMBERNS,u'textual'), None): cnv_boolean,
841 ((NUMBERNS,u'title'), None): cnv_string,
842 ((NUMBERNS,u'transliteration-country'), None): cnv_token,
843 ((NUMBERNS,u'transliteration-format'), None): cnv_string,
844 ((NUMBERNS,u'transliteration-language'), None): cnv_token,
845 ((NUMBERNS,u'transliteration-style'), None): cnv_string,
846 ((NUMBERNS,u'truncate-on-overflow'), None): cnv_boolean,
847 ((OFFICENS,u'automatic-update'), None): cnv_boolean,
848 ((OFFICENS,u'boolean-value'), None): cnv_boolean,
849 ((OFFICENS,u'conversion-mode'), None): cnv_string,
850 ((OFFICENS,u'currency'), None): cnv_string,
851 ((OFFICENS,u'date-value'), None): cnv_dateTime,
852 ((OFFICENS,u'dde-application'), None): cnv_string,
853 ((OFFICENS,u'dde-item'), None): cnv_string,
854 ((OFFICENS,u'dde-topic'), None): cnv_string,
855 ((OFFICENS,u'display'), None): cnv_boolean,
856 ((OFFICENS,u'mimetype'), None): cnv_string,
857 ((OFFICENS,u'name'), None): cnv_string,
858 ((OFFICENS,u'process-content'), None): cnv_boolean,
859 ((OFFICENS,u'server-map'), None): cnv_boolean,
860 ((OFFICENS,u'string-value'), None): cnv_string,
861 ((OFFICENS,u'target-frame'), None): cnv_string,
862 ((OFFICENS,u'target-frame-name'), None): cnv_string,
863 ((OFFICENS,u'time-value'), None): cnv_duration,
864 ((OFFICENS,u'title'), None): cnv_string,
865 ((OFFICENS,u'value'), None): cnv_double,
866 ((OFFICENS,u'value-type'), None): cnv_string,
867 ((OFFICENS,u'version'), None): cnv_string,
868 ((PRESENTATIONNS,u'action'), None): cnv_string,
869 ((PRESENTATIONNS,u'animations'), None): cnv_string,
870 ((PRESENTATIONNS,u'background-objects-visible'), None): cnv_boolean,
871 ((PRESENTATIONNS,u'background-visible'), None): cnv_boolean,
872 ((PRESENTATIONNS,u'class'), None): cnv_string,
873 ((PRESENTATIONNS,u'class-names'), None): cnv_NCNames,
874 ((PRESENTATIONNS,u'delay'), None): cnv_duration,
875 ((PRESENTATIONNS,u'direction'), None): cnv_string,
876 ((PRESENTATIONNS,u'display-date-time'), None): cnv_boolean,
877 ((PRESENTATIONNS,u'display-footer'), None): cnv_boolean,
878 ((PRESENTATIONNS,u'display-header'), None): cnv_boolean,
879 ((PRESENTATIONNS,u'display-page-number'), None): cnv_boolean,
880 ((PRESENTATIONNS,u'duration'), None): cnv_string,
881 ((PRESENTATIONNS,u'effect'), None): cnv_string,
882 ((PRESENTATIONNS,u'endless'), None): cnv_boolean,
883 ((PRESENTATIONNS,u'force-manual'), None): cnv_boolean,
884 ((PRESENTATIONNS,u'full-screen'), None): cnv_boolean,
885 ((PRESENTATIONNS,u'group-id'), None): cnv_string,
886 ((PRESENTATIONNS,u'master-element'), None): cnv_IDREF,
887 ((PRESENTATIONNS,u'mouse-as-pen'), None): cnv_boolean,
888 ((PRESENTATIONNS,u'mouse-visible'), None): cnv_boolean,
889 ((PRESENTATIONNS,u'name'), None): cnv_string,
890 ((PRESENTATIONNS,u'node-type'), None): cnv_string,
891 ((PRESENTATIONNS,u'object'), None): cnv_string,
892 ((PRESENTATIONNS,u'pages'), None): cnv_string,
893 ((PRESENTATIONNS,u'path-id'), None): cnv_string,
894 ((PRESENTATIONNS,u'pause'), None): cnv_duration,
895 ((PRESENTATIONNS,u'placeholder'), None): cnv_boolean,
896 ((PRESENTATIONNS,u'play-full'), None): cnv_boolean,
897 ((PRESENTATIONNS,u'presentation-page-layout-name'), None): cnv_StyleNameRef,
898 ((PRESENTATIONNS,u'preset-class'), None): cnv_string,
899 ((PRESENTATIONNS,u'preset-id'), None): cnv_string,
900 ((PRESENTATIONNS,u'preset-sub-type'), None): cnv_string,
901 ((PRESENTATIONNS,u'show'), None): cnv_string,
902 ((PRESENTATIONNS,u'show-end-of-presentation-slide'), None): cnv_boolean,
903 ((PRESENTATIONNS,u'show-logo'), None): cnv_boolean,
904 ((PRESENTATIONNS,u'source'), None): cnv_string,
905 ((PRESENTATIONNS,u'speed'), None): cnv_string,
906 ((PRESENTATIONNS,u'start-page'), None): cnv_string,
907 ((PRESENTATIONNS,u'start-scale'), None): cnv_string,
908 ((PRESENTATIONNS,u'start-with-navigator'), None): cnv_boolean,
909 ((PRESENTATIONNS,u'stay-on-top'), None): cnv_boolean,
910 ((PRESENTATIONNS,u'style-name'), None): cnv_StyleNameRef,
911 ((PRESENTATIONNS,u'transition-on-click'), None): cnv_string,
912 ((PRESENTATIONNS,u'transition-speed'), None): cnv_string,
913 ((PRESENTATIONNS,u'transition-style'), None): cnv_string,
914 ((PRESENTATIONNS,u'transition-type'), None): cnv_string,
915 ((PRESENTATIONNS,u'use-date-time-name'), None): cnv_string,
916 ((PRESENTATIONNS,u'use-footer-name'), None): cnv_string,
917 ((PRESENTATIONNS,u'use-header-name'), None): cnv_string,
918 ((PRESENTATIONNS,u'user-transformed'), None): cnv_boolean,
919 ((PRESENTATIONNS,u'verb'), None): cnv_nonNegativeInteger,
920 ((PRESENTATIONNS,u'visibility'), None): cnv_string,
921 ((SCRIPTNS,u'event-name'), None): cnv_formula,
922 ((SCRIPTNS,u'language'), None): cnv_formula,
923 ((SCRIPTNS,u'macro-name'), None): cnv_string,
924 ((SMILNS,u'accelerate'), None): cnv_double,
925 ((SMILNS,u'accumulate'), None): cnv_string,
926 ((SMILNS,u'additive'), None): cnv_string,
927 ((SMILNS,u'attributeName'), None): cnv_string,
928 ((SMILNS,u'autoReverse'), None): cnv_boolean,
929 ((SMILNS,u'begin'), None): cnv_string,
930 ((SMILNS,u'by'), None): cnv_string,
931 ((SMILNS,u'calcMode'), None): cnv_string,
932 ((SMILNS,u'decelerate'), None): cnv_double,
933 ((SMILNS,u'direction'), None): cnv_string,
934 ((SMILNS,u'dur'), None): cnv_string,
935 ((SMILNS,u'end'), None): cnv_string,
936 ((SMILNS,u'endsync'), None): cnv_string,
937 ((SMILNS,u'fadeColor'), None): cnv_string,
938 ((SMILNS,u'fill'), None): cnv_string,
939 ((SMILNS,u'fillDefault'), None): cnv_string,
940 ((SMILNS,u'from'), None): cnv_string,
941 ((SMILNS,u'keySplines'), None): cnv_string,
942 ((SMILNS,u'keyTimes'), None): cnv_string,
943 ((SMILNS,u'mode'), None): cnv_string,
944 ((SMILNS,u'repeatCount'), None): cnv_nonNegativeInteger,
945 ((SMILNS,u'repeatDur'), None): cnv_string,
946 ((SMILNS,u'restart'), None): cnv_string,
947 ((SMILNS,u'restartDefault'), None): cnv_string,
948 ((SMILNS,u'subtype'), None): cnv_string,
949 ((SMILNS,u'targetElement'), None): cnv_IDREF,
950 ((SMILNS,u'to'), None): cnv_string,
951 ((SMILNS,u'type'), None): cnv_string,
952 ((SMILNS,u'values'), None): cnv_string,
953 ((STYLENS,u'adjustment'), None): cnv_string,
954 ((STYLENS,u'apply-style-name'), None): cnv_StyleNameRef,
955 ((STYLENS,u'auto-text-indent'), None): cnv_boolean,
956 ((STYLENS,u'auto-update'), None): cnv_boolean,
957 ((STYLENS,u'background-transparency'), None): cnv_string,
958 ((STYLENS,u'base-cell-address'), None): cnv_string,
959 ((STYLENS,u'border-line-width-bottom'), None): cnv_string,
960 ((STYLENS,u'border-line-width'), None): cnv_string,
961 ((STYLENS,u'border-line-width-left'), None): cnv_string,
962 ((STYLENS,u'border-line-width-right'), None): cnv_string,
963 ((STYLENS,u'border-line-width-top'), None): cnv_string,
964 ((STYLENS,u'cell-protect'), None): cnv_string,
965 ((STYLENS,u'char'), None): cnv_string,
966 ((STYLENS,u'class'), None): cnv_string,
967 ((STYLENS,u'color'), None): cnv_string,
968 ((STYLENS,u'column-width'), None): cnv_string,
969 ((STYLENS,u'condition'), None): cnv_string,
970 ((STYLENS,u'country-asian'), None): cnv_string,
971 ((STYLENS,u'country-complex'), None): cnv_string,
972 ((STYLENS,u'data-style-name'), None): cnv_StyleNameRef,
973 ((STYLENS,u'decimal-places'), None): cnv_string,
974 ((STYLENS,u'default-outline-level'), None): cnv_positiveInteger,
975 ((STYLENS,u'diagonal-bl-tr'), None): cnv_string,
976 ((STYLENS,u'diagonal-bl-tr-widths'), None): cnv_string,
977 ((STYLENS,u'diagonal-tl-br'), None): cnv_string,
978 ((STYLENS,u'diagonal-tl-br-widths'), None): cnv_string,
979 ((STYLENS,u'direction'), None): cnv_string,
980 ((STYLENS,u'display'), None): cnv_boolean,
981 ((STYLENS,u'display-name'), None): cnv_string,
982 ((STYLENS,u'distance-after-sep'), None): cnv_length,
983 ((STYLENS,u'distance-before-sep'), None): cnv_length,
984 ((STYLENS,u'distance'), None): cnv_length,
985 ((STYLENS,u'dynamic-spacing'), None): cnv_boolean,
986 ((STYLENS,u'editable'), None): cnv_boolean,
987 ((STYLENS,u'family'), None): cnv_family,
988 ((STYLENS,u'filter-name'), None): cnv_string,
989 ((STYLENS,u'first-page-number'), None): cnv_string,
990 ((STYLENS,u'flow-with-text'), None): cnv_boolean,
991 ((STYLENS,u'font-adornments'), None): cnv_string,
992 ((STYLENS,u'font-charset'), None): cnv_string,
993 ((STYLENS,u'font-charset-asian'), None): cnv_string,
994 ((STYLENS,u'font-charset-complex'), None): cnv_string,
995 ((STYLENS,u'font-family-asian'), None): cnv_string,
996 ((STYLENS,u'font-family-complex'), None): cnv_string,
997 ((STYLENS,u'font-family-generic-asian'), None): cnv_string,
998 ((STYLENS,u'font-family-generic'), None): cnv_string,
999 ((STYLENS,u'font-family-generic-complex'), None): cnv_string,
1000 ((STYLENS,u'font-independent-line-spacing'), None): cnv_boolean,
1001 ((STYLENS,u'font-name-asian'), None): cnv_string,
1002 ((STYLENS,u'font-name'), None): cnv_string,
1003 ((STYLENS,u'font-name-complex'), None): cnv_string,
1004 ((STYLENS,u'font-pitch-asian'), None): cnv_string,
1005 ((STYLENS,u'font-pitch'), None): cnv_string,
1006 ((STYLENS,u'font-pitch-complex'), None): cnv_string,
1007 ((STYLENS,u'font-relief'), None): cnv_string,
1008 ((STYLENS,u'font-size-asian'), None): cnv_string,
1009 ((STYLENS,u'font-size-complex'), None): cnv_string,
1010 ((STYLENS,u'font-size-rel-asian'), None): cnv_length,
1011 ((STYLENS,u'font-size-rel'), None): cnv_length,
1012 ((STYLENS,u'font-size-rel-complex'), None): cnv_length,
1013 ((STYLENS,u'font-style-asian'), None): cnv_string,
1014 ((STYLENS,u'font-style-complex'), None): cnv_string,
1015 ((STYLENS,u'font-style-name-asian'), None): cnv_string,
1016 ((STYLENS,u'font-style-name'), None): cnv_string,
1017 ((STYLENS,u'font-style-name-complex'), None): cnv_string,
1018 ((STYLENS,u'font-weight-asian'), None): cnv_string,
1019 ((STYLENS,u'font-weight-complex'), None): cnv_string,
1020 ((STYLENS,u'footnote-max-height'), None): cnv_length,
1021 ((STYLENS,u'glyph-orientation-vertical'), None): cnv_string,
1022 ((STYLENS,u'height'), None): cnv_string,
1023 ((STYLENS,u'horizontal-pos'), None): cnv_string,
1024 ((STYLENS,u'horizontal-rel'), None): cnv_string,
1025 ((STYLENS,u'join-border'), None): cnv_boolean,
1026 ((STYLENS,u'justify-single-word'), None): cnv_boolean,
1027 ((STYLENS,u'language-asian'), None): cnv_string,
1028 ((STYLENS,u'language-complex'), None): cnv_string,
1029 ((STYLENS,u'layout-grid-base-height'), None): cnv_length,
1030 ((STYLENS,u'layout-grid-base-width'), None): cnv_length,
1031 ((STYLENS,u'layout-grid-color'), None): cnv_string,
1032 ((STYLENS,u'layout-grid-display'), None): cnv_boolean,
1033 ((STYLENS,u'layout-grid-lines'), None): cnv_string,
1034 ((STYLENS,u'layout-grid-mode'), None): cnv_string,
1035 ((STYLENS,u'layout-grid-print'), None): cnv_boolean,
1036 ((STYLENS,u'layout-grid-ruby-below'), None): cnv_boolean,
1037 ((STYLENS,u'layout-grid-ruby-height'), None): cnv_length,
1038 ((STYLENS,u'layout-grid-snap-to'), None): cnv_boolean,
1039 ((STYLENS,u'layout-grid-standard-mode'), None): cnv_boolean,
1040 ((STYLENS,u'leader-char'), None): cnv_string,
1041 ((STYLENS,u'leader-color'), None): cnv_string,
1042 ((STYLENS,u'leader-style'), None): cnv_string,
1043 ((STYLENS,u'leader-text'), None): cnv_string,
1044 ((STYLENS,u'leader-text-style'), None): cnv_StyleNameRef,
1045 ((STYLENS,u'leader-type'), None): cnv_string,
1046 ((STYLENS,u'leader-width'), None): cnv_string,
1047 ((STYLENS,u'legend-expansion-aspect-ratio'), None): cnv_double,
1048 ((STYLENS,u'legend-expansion'), None): cnv_string,
1049 ((STYLENS,u'length'), None): cnv_positiveInteger,
1050 ((STYLENS,u'letter-kerning'), None): cnv_boolean,
1051 ((STYLENS,u'line-break'), None): cnv_string,
1052 ((STYLENS,u'line-height-at-least'), None): cnv_string,
1053 ((STYLENS,u'line-spacing'), None): cnv_length,
1054 ((STYLENS,u'line-style'), None): cnv_string,
1055 ((STYLENS,u'lines'), None): cnv_positiveInteger,
1056 ((STYLENS,u'list-level'), None): cnv_positiveInteger,
1057 ((STYLENS,u'list-style-name'), None): cnv_StyleNameRef,
1058 ((STYLENS,u'master-page-name'), None): cnv_StyleNameRef,
1059 ((STYLENS,u'may-break-between-rows'), None): cnv_boolean,
1060 ((STYLENS,u'min-row-height'), None): cnv_string,
1061 ((STYLENS,u'mirror'), None): cnv_string,
1062 ((STYLENS,u'name'), None): cnv_NCName,
1063 ((STYLENS,u'name'), (STYLENS,u'font-face')): cnv_string,
1064 ((STYLENS,u'next-style-name'), None): cnv_StyleNameRef,
1065 ((STYLENS,u'num-format'), None): cnv_string,
1066 ((STYLENS,u'num-letter-sync'), None): cnv_boolean,
1067 ((STYLENS,u'num-prefix'), None): cnv_string,
1068 ((STYLENS,u'num-suffix'), None): cnv_string,
1069 ((STYLENS,u'number-wrapped-paragraphs'), None): cnv_string,
1070 ((STYLENS,u'overflow-behavior'), None): cnv_string,
1071 ((STYLENS,u'page-layout-name'), None): cnv_StyleNameRef,
1072 ((STYLENS,u'page-number'), None): cnv_string,
1073 ((STYLENS,u'page-usage'), None): cnv_string,
1074 ((STYLENS,u'paper-tray-name'), None): cnv_string,
1075 ((STYLENS,u'parent-style-name'), None): cnv_StyleNameRef,
1076 ((STYLENS,u'percentage-data-style-name'), None): cnv_StyleNameRef,
1077 ((STYLENS,u'position'), (STYLENS,u'tab-stop')): cnv_length,
1078 ((STYLENS,u'position'), None): cnv_string,
1079 ((STYLENS,u'print'), None): cnv_string,
1080 ((STYLENS,u'print-content'), None): cnv_boolean,
1081 ((STYLENS,u'print-orientation'), None): cnv_string,
1082 ((STYLENS,u'print-page-order'), None): cnv_string,
1083 ((STYLENS,u'protect'), (STYLENS,u'section-properties')): cnv_boolean,
1084 ((STYLENS,u'protect'), (STYLENS,u'graphic-properties')): cnv_string,
1085# ((STYLENS,u'protect'), None): cnv_boolean,
1086 ((STYLENS,u'punctuation-wrap'), None): cnv_string,
1087 ((STYLENS,u'register-true'), None): cnv_boolean,
1088 ((STYLENS,u'register-truth-ref-style-name'), None): cnv_string,
1089 ((STYLENS,u'rel-column-width'), None): cnv_string,
1090 ((STYLENS,u'rel-height'), None): cnv_string,
1091 ((STYLENS,u'rel-width'), None): cnv_string,
1092 ((STYLENS,u'repeat'), None): cnv_string,
1093 ((STYLENS,u'repeat-content'), None): cnv_boolean,
1094 ((STYLENS,u'rfc-language-tag'), None): cnv_language,
1095 ((STYLENS,u'rfc-language-tag-asian'), None): cnv_language,
1096 ((STYLENS,u'rfc-language-tag-complex'), None): cnv_language,
1097 ((STYLENS,u'rotation-align'), None): cnv_string,
1098 ((STYLENS,u'rotation-angle'), None): cnv_string,
1099 ((STYLENS,u'row-height'), None): cnv_string,
1100 ((STYLENS,u'ruby-align'), None): cnv_string,
1101 ((STYLENS,u'ruby-position'), None): cnv_string,
1102 ((STYLENS,u'run-through'), None): cnv_string,
1103 ((STYLENS,u'scale-to'), None): cnv_string,
1104 ((STYLENS,u'scale-to-pages'), None): cnv_string,
1105 ((STYLENS,u'script-asian'), None): cnv_string,
1106 ((STYLENS,u'script-complex'), None): cnv_string,
1107 ((STYLENS,u'script-type'), None): cnv_string,
1108 ((STYLENS,u'shadow'), None): cnv_string,
1109 ((STYLENS,u'shrink-to-fit'), None): cnv_boolean,
1110 ((STYLENS,u'snap-to-layout-grid'), None): cnv_boolean,
1111 ((STYLENS,u'style'), None): cnv_string,
1112 ((STYLENS,u'style-name'), None): cnv_StyleNameRef,
1113 ((STYLENS,u'tab-stop-distance'), None): cnv_string,
1114 ((STYLENS,u'table-centering'), None): cnv_string,
1115 ((STYLENS,u'text-align-source'), None): cnv_string,
1116 ((STYLENS,u'text-autospace'), None): cnv_string,
1117 ((STYLENS,u'text-blinking'), None): cnv_boolean,
1118 ((STYLENS,u'text-combine'), None): cnv_string,
1119 ((STYLENS,u'text-combine-end-char'), None): cnv_string,
1120 ((STYLENS,u'text-combine-start-char'), None): cnv_string,
1121 ((STYLENS,u'text-emphasize'), None): cnv_string,
1122 ((STYLENS,u'text-line-through-color'), None): cnv_string,
1123 ((STYLENS,u'text-line-through-mode'), None): cnv_string,
1124 ((STYLENS,u'text-line-through-style'), None): cnv_string,
1125 ((STYLENS,u'text-line-through-text'), None): cnv_string,
1126 ((STYLENS,u'text-line-through-text-style'), None): cnv_string,
1127 ((STYLENS,u'text-line-through-type'), None): cnv_string,
1128 ((STYLENS,u'text-line-through-width'), None): cnv_string,
1129 ((STYLENS,u'text-outline'), None): cnv_boolean,
1130 ((STYLENS,u'text-overline-color'), None): cnv_string,
1131 ((STYLENS,u'text-overline-mode'), None): cnv_string,
1132 ((STYLENS,u'text-overline-style'), None): cnv_string,
1133 ((STYLENS,u'text-overline-type'), None): cnv_string,
1134 ((STYLENS,u'text-overline-width'), None): cnv_string,
1135 ((STYLENS,u'text-position'), None): cnv_string,
1136 ((STYLENS,u'text-rotation-angle'), None): cnv_string,
1137 ((STYLENS,u'text-rotation-scale'), None): cnv_string,
1138 ((STYLENS,u'text-scale'), None): cnv_string,
1139 ((STYLENS,u'text-underline-color'), None): cnv_string,
1140 ((STYLENS,u'text-underline-mode'), None): cnv_string,
1141 ((STYLENS,u'text-underline-style'), None): cnv_string,
1142 ((STYLENS,u'text-underline-type'), None): cnv_string,
1143 ((STYLENS,u'text-underline-width'), None): cnv_string,
1144 ((STYLENS,u'type'), None): cnv_string,
1145 ((STYLENS,u'use-optimal-column-width'), None): cnv_boolean,
1146 ((STYLENS,u'use-optimal-row-height'), None): cnv_boolean,
1147 ((STYLENS,u'use-window-font-color'), None): cnv_boolean,
1148 ((STYLENS,u'vertical-align'), None): cnv_string,
1149 ((STYLENS,u'vertical-pos'), None): cnv_string,
1150 ((STYLENS,u'vertical-rel'), None): cnv_string,
1151 ((STYLENS,u'volatile'), None): cnv_boolean,
1152 ((STYLENS,u'width'), None): cnv_string,
1153 ((STYLENS,u'wrap'), None): cnv_string,
1154 ((STYLENS,u'wrap-contour'), None): cnv_boolean,
1155 ((STYLENS,u'wrap-contour-mode'), None): cnv_string,
1156 ((STYLENS,u'wrap-dynamic-threshold'), None): cnv_length,
1157 ((STYLENS,u'writing-mode-automatic'), None): cnv_boolean,
1158 ((STYLENS,u'writing-mode'), None): cnv_string,
1159 ((SVGNS,u'accent-height'), None): cnv_integer,
1160 ((SVGNS,u'alphabetic'), None): cnv_integer,
1161 ((SVGNS,u'ascent'), None): cnv_integer,
1162 ((SVGNS,u'bbox'), None): cnv_string,
1163 ((SVGNS,u'cap-height'), None): cnv_integer,
1164 ((SVGNS,u'cx'), None): cnv_string,
1165 ((SVGNS,u'cy'), None): cnv_string,
1166 ((SVGNS,u'd'), None): cnv_string,
1167 ((SVGNS,u'descent'), None): cnv_integer,
1168 ((SVGNS,u'fill-rule'), None): cnv_string,
1169 ((SVGNS,u'font-family'), None): cnv_string,
1170 ((SVGNS,u'font-size'), None): cnv_string,
1171 ((SVGNS,u'font-stretch'), None): cnv_string,
1172 ((SVGNS,u'font-style'), None): cnv_string,
1173 ((SVGNS,u'font-variant'), None): cnv_string,
1174 ((SVGNS,u'font-weight'), None): cnv_string,
1175 ((SVGNS,u'fx'), None): cnv_string,
1176 ((SVGNS,u'fy'), None): cnv_string,
1177 ((SVGNS,u'gradientTransform'), None): cnv_string,
1178 ((SVGNS,u'gradientUnits'), None): cnv_string,
1179 ((SVGNS,u'hanging'), None): cnv_integer,
1180 ((SVGNS,u'height'), None): cnv_length,
1181 ((SVGNS,u'ideographic'), None): cnv_integer,
1182 ((SVGNS,u'mathematical'), None): cnv_integer,
1183 ((SVGNS,u'name'), None): cnv_string,
1184 ((SVGNS,u'offset'), None): cnv_string,
1185 ((SVGNS,u'origin'), None): cnv_string,
1186 ((SVGNS,u'overline-position'), None): cnv_integer,
1187 ((SVGNS,u'overline-thickness'), None): cnv_integer,
1188 ((SVGNS,u'panose-1'), None): cnv_string,
1189 ((SVGNS,u'path'), None): cnv_string,
1190 ((SVGNS,u'r'), None): cnv_length,
1191 ((SVGNS,u'rx'), None): cnv_length,
1192 ((SVGNS,u'ry'), None): cnv_length,
1193 ((SVGNS,u'slope'), None): cnv_integer,
1194 ((SVGNS,u'spreadMethod'), None): cnv_string,
1195 ((SVGNS,u'stemh'), None): cnv_integer,
1196 ((SVGNS,u'stemv'), None): cnv_integer,
1197 ((SVGNS,u'stop-color'), None): cnv_string,
1198 ((SVGNS,u'stop-opacity'), None): cnv_double,
1199 ((SVGNS,u'strikethrough-position'), None): cnv_integer,
1200 ((SVGNS,u'strikethrough-thickness'), None): cnv_integer,
1201 ((SVGNS,u'string'), None): cnv_string,
1202 ((SVGNS,u'stroke-color'), None): cnv_string,
1203 ((SVGNS,u'stroke-linecap'), None): cnv_stroke_linecap,
1204 ((SVGNS,u'stroke-opacity'), None): cnv_string,
1205 ((SVGNS,u'stroke-width'), None): cnv_length,
1206 ((SVGNS,u'type'), None): cnv_string,
1207 ((SVGNS,u'underline-position'), None): cnv_integer,
1208 ((SVGNS,u'underline-thickness'), None): cnv_integer,
1209 ((SVGNS,u'unicode-range'), None): cnv_string,
1210 ((SVGNS,u'units-per-em'), None): cnv_integer,
1211 ((SVGNS,u'v-alphabetic'), None): cnv_integer,
1212 ((SVGNS,u'v-hanging'), None): cnv_integer,
1213 ((SVGNS,u'v-ideographic'), None): cnv_integer,
1214 ((SVGNS,u'v-mathematical'), None): cnv_integer,
1215 ((SVGNS,u'viewBox'), None): cnv_viewbox,
1216 ((SVGNS,u'width'), None): cnv_length,
1217 ((SVGNS,u'widths'), None): cnv_string,
1218 ((SVGNS,u'x'), None): cnv_length,
1219 ((SVGNS,u'x-height'), None): cnv_integer,
1220 ((SVGNS,u'x1'), None): cnv_lengthorpercent,
1221 ((SVGNS,u'x2'), None): cnv_lengthorpercent,
1222 ((SVGNS,u'y'), None): cnv_length,
1223 ((SVGNS,u'y1'), None): cnv_lengthorpercent,
1224 ((SVGNS,u'y2'), None): cnv_lengthorpercent,
1225 ((TABLENS,u'acceptance-state'), None): cnv_string,
1226 ((TABLENS,u'add-empty-lines'), None): cnv_boolean,
1227 ((TABLENS,u'algorithm'), None): cnv_formula,
1228 ((TABLENS,u'align'), None): cnv_string,
1229 ((TABLENS,u'allow-empty-cell'), None): cnv_boolean,
1230 ((TABLENS,u'application-data'), None): cnv_string,
1231 ((TABLENS,u'automatic-find-labels'), None): cnv_boolean,
1232 ((TABLENS,u'base-cell-address'), None): cnv_string,
1233 ((TABLENS,u'bind-styles-to-content'), None): cnv_boolean,
1234 ((TABLENS,u'border-color'), None): cnv_string,
1235 ((TABLENS,u'border-model'), None): cnv_string,
1236 ((TABLENS,u'buttons'), None): cnv_string,
1237 ((TABLENS,u'buttons'), None): cnv_string,
1238 ((TABLENS,u'case-sensitive'), None): cnv_boolean,
1239 ((TABLENS,u'case-sensitive'), None): cnv_string,
1240 ((TABLENS,u'cell-address'), None): cnv_string,
1241 ((TABLENS,u'cell-range-address'), None): cnv_string,
1242 ((TABLENS,u'cell-range-address'), None): cnv_string,
1243 ((TABLENS,u'cell-range'), None): cnv_string,
1244 ((TABLENS,u'column'), None): cnv_integer,
1245 ((TABLENS,u'comment'), None): cnv_string,
1246 ((TABLENS,u'condition'), None): cnv_formula,
1247 ((TABLENS,u'condition-source'), None): cnv_string,
1248 ((TABLENS,u'condition-source-range-address'), None): cnv_string,
1249 ((TABLENS,u'contains-error'), None): cnv_boolean,
1250 ((TABLENS,u'contains-header'), None): cnv_boolean,
1251 ((TABLENS,u'content-validation-name'), None): cnv_string,
1252 ((TABLENS,u'copy-back'), None): cnv_boolean,
1253 ((TABLENS,u'copy-formulas'), None): cnv_boolean,
1254 ((TABLENS,u'copy-styles'), None): cnv_boolean,
1255 ((TABLENS,u'count'), None): cnv_positiveInteger,
1256 ((TABLENS,u'country'), None): cnv_token,
1257 ((TABLENS,u'data-cell-range-address'), None): cnv_string,
1258 ((TABLENS,u'data-field'), None): cnv_string,
1259 ((TABLENS,u'data-type'), None): cnv_string,
1260 ((TABLENS,u'database-name'), None): cnv_string,
1261 ((TABLENS,u'database-table-name'), None): cnv_string,
1262 ((TABLENS,u'date-end'), None): cnv_string,
1263 ((TABLENS,u'date-start'), None): cnv_string,
1264 ((TABLENS,u'date-value'), None): cnv_date,
1265 ((TABLENS,u'default-cell-style-name'), None): cnv_StyleNameRef,
1266 ((TABLENS,u'direction'), None): cnv_string,
1267 ((TABLENS,u'display-border'), None): cnv_boolean,
1268 ((TABLENS,u'display'), None): cnv_boolean,
1269 ((TABLENS,u'display-duplicates'), None): cnv_boolean,
1270 ((TABLENS,u'display-filter-buttons'), None): cnv_boolean,
1271 ((TABLENS,u'display-list'), None): cnv_string,
1272 ((TABLENS,u'display-member-mode'), None): cnv_string,
1273 ((TABLENS,u'drill-down-on-double-click'), None): cnv_boolean,
1274 ((TABLENS,u'embedded-number-behavior'), None): cnv_string,
1275 ((TABLENS,u'enabled'), None): cnv_boolean,
1276 ((TABLENS,u'end-cell-address'), None): cnv_string,
1277 ((TABLENS,u'end'), None): cnv_string,
1278 ((TABLENS,u'end-column'), None): cnv_integer,
1279 ((TABLENS,u'end-position'), None): cnv_integer,
1280 ((TABLENS,u'end-row'), None): cnv_integer,
1281 ((TABLENS,u'end-table'), None): cnv_integer,
1282 ((TABLENS,u'end-x'), None): cnv_length,
1283 ((TABLENS,u'end-y'), None): cnv_length,
1284 ((TABLENS,u'execute'), None): cnv_boolean,
1285 ((TABLENS,u'expression'), None): cnv_formula,
1286 ((TABLENS,u'field-name'), None): cnv_string,
1287 ((TABLENS,u'field-number'), None): cnv_nonNegativeInteger,
1288 ((TABLENS,u'field-number'), None): cnv_string,
1289 ((TABLENS,u'filter-name'), None): cnv_string,
1290 ((TABLENS,u'filter-options'), None): cnv_string,
1291 ((TABLENS,u'first-row-end-column'), None): cnv_rowOrCol,
1292 ((TABLENS,u'first-row-start-column'), None): cnv_rowOrCol,
1293 ((TABLENS,u'formula'), None): cnv_formula,
1294 ((TABLENS,u'function'), None): cnv_string,
1295 ((TABLENS,u'function'), None): cnv_string,
1296 ((TABLENS,u'grand-total'), None): cnv_string,
1297 ((TABLENS,u'group-by-field-number'), None): cnv_nonNegativeInteger,
1298 ((TABLENS,u'grouped-by'), None): cnv_string,
1299 ((TABLENS,u'has-persistent-data'), None): cnv_boolean,
1300 ((TABLENS,u'id'), None): cnv_string,
1301 ((TABLENS,u'identify-categories'), None): cnv_boolean,
1302 ((TABLENS,u'ignore-empty-rows'), None): cnv_boolean,
1303 ((TABLENS,u'index'), None): cnv_nonNegativeInteger,
1304 ((TABLENS,u'is-active'), None): cnv_boolean,
1305 ((TABLENS,u'is-data-layout-field'), None): cnv_string,
1306 ((TABLENS,u'is-selection'), None): cnv_boolean,
1307 ((TABLENS,u'is-sub-table'), None): cnv_boolean,
1308 ((TABLENS,u'label-cell-range-address'), None): cnv_string,
1309 ((TABLENS,u'language'), None): cnv_token,
1310 ((TABLENS,u'language'), None): cnv_token,
1311 ((TABLENS,u'last-column-spanned'), None): cnv_positiveInteger,
1312 ((TABLENS,u'last-row-end-column'), None): cnv_rowOrCol,
1313 ((TABLENS,u'last-row-spanned'), None): cnv_positiveInteger,
1314 ((TABLENS,u'last-row-start-column'), None): cnv_rowOrCol,
1315 ((TABLENS,u'layout-mode'), None): cnv_string,
1316 ((TABLENS,u'link-to-source-data'), None): cnv_boolean,
1317 ((TABLENS,u'marked-invalid'), None): cnv_boolean,
1318 ((TABLENS,u'matrix-covered'), None): cnv_boolean,
1319 ((TABLENS,u'maximum-difference'), None): cnv_double,
1320 ((TABLENS,u'member-count'), None): cnv_nonNegativeInteger,
1321 ((TABLENS,u'member-name'), None): cnv_string,
1322 ((TABLENS,u'member-type'), None): cnv_string,
1323 ((TABLENS,u'message-type'), None): cnv_string,
1324 ((TABLENS,u'mode'), None): cnv_string,
1325 ((TABLENS,u'multi-deletion-spanned'), None): cnv_integer,
1326 ((TABLENS,u'name'), None): cnv_string,
1327 ((TABLENS,u'name'), None): cnv_string,
1328 ((TABLENS,u'null-year'), None): cnv_positiveInteger,
1329 ((TABLENS,u'number-columns-repeated'), None): cnv_positiveInteger,
1330 ((TABLENS,u'number-columns-spanned'), None): cnv_positiveInteger,
1331 ((TABLENS,u'number-matrix-columns-spanned'), None): cnv_positiveInteger,
1332 ((TABLENS,u'number-matrix-rows-spanned'), None): cnv_positiveInteger,
1333 ((TABLENS,u'number-rows-repeated'), None): cnv_positiveInteger,
1334 ((TABLENS,u'number-rows-spanned'), None): cnv_positiveInteger,
1335 ((TABLENS,u'object-name'), None): cnv_string,
1336 ((TABLENS,u'on-update-keep-size'), None): cnv_boolean,
1337 ((TABLENS,u'on-update-keep-styles'), None): cnv_boolean,
1338 ((TABLENS,u'operator'), None): cnv_string,
1339 ((TABLENS,u'operator'), None): cnv_string,
1340 ((TABLENS,u'order'), None): cnv_string,
1341 ((TABLENS,u'orientation'), None): cnv_string,
1342 ((TABLENS,u'orientation'), None): cnv_string,
1343 ((TABLENS,u'page-breaks-on-group-change'), None): cnv_boolean,
1344 ((TABLENS,u'paragraph-style-name'), None): cnv_StyleNameRef,
1345 ((TABLENS,u'parse-sql-statement'), None): cnv_boolean,
1346 ((TABLENS,u'password'), None): cnv_string,
1347 ((TABLENS,u'position'), None): cnv_integer,
1348 ((TABLENS,u'precision-as-shown'), None): cnv_boolean,
1349 ((TABLENS,u'print'), None): cnv_boolean,
1350 ((TABLENS,u'print-ranges'), None): cnv_string,
1351 ((TABLENS,u'protect'), None): cnv_boolean,
1352 ((TABLENS,u'protected'), None): cnv_boolean,
1353 ((TABLENS,u'protection-key'), None): cnv_string,
1354 ((TABLENS,u'protection-key-digest-algorithm'), None): cnv_anyURI,
1355 ((TABLENS,u'query-name'), None): cnv_string,
1356 ((TABLENS,u'range-usable-as'), None): cnv_string,
1357 ((TABLENS,u'rfc-language-tag'), None): cnv_language,
1358 ((TABLENS,u'refresh-delay'), None): cnv_boolean,
1359 ((TABLENS,u'refresh-delay'), None): cnv_duration,
1360 ((TABLENS,u'rejecting-change-id'), None): cnv_string,
1361 ((TABLENS,u'row'), None): cnv_integer,
1362 ((TABLENS,u'scenario-ranges'), None): cnv_string,
1363 ((TABLENS,u'script'), None): cnv_string,
1364 ((TABLENS,u'search-criteria-must-apply-to-whole-cell'), None): cnv_boolean,
1365 ((TABLENS,u'selected-page'), None): cnv_string,
1366 ((TABLENS,u'show-details'), None): cnv_boolean,
1367 ((TABLENS,u'show-empty'), None): cnv_boolean,
1368 ((TABLENS,u'show-empty'), None): cnv_string,
1369 ((TABLENS,u'show-filter-button'), None): cnv_boolean,
1370 ((TABLENS,u'sort-mode'), None): cnv_string,
1371 ((TABLENS,u'source-cell-range-addresses'), None): cnv_string,
1372 ((TABLENS,u'source-cell-range-addresses'), None): cnv_string,
1373 ((TABLENS,u'source-field-name'), None): cnv_string,
1374 ((TABLENS,u'source-field-name'), None): cnv_string,
1375 ((TABLENS,u'source-name'), None): cnv_string,
1376 ((TABLENS,u'sql-statement'), None): cnv_string,
1377 ((TABLENS,u'start'), None): cnv_string,
1378 ((TABLENS,u'start-column'), None): cnv_integer,
1379 ((TABLENS,u'start-position'), None): cnv_integer,
1380 ((TABLENS,u'start-row'), None): cnv_integer,
1381 ((TABLENS,u'start-table'), None): cnv_integer,
1382 ((TABLENS,u'status'), None): cnv_string,
1383 ((TABLENS,u'step'), None): cnv_double,
1384 ((TABLENS,u'steps'), None): cnv_positiveInteger,
1385 ((TABLENS,u'structure-protected'), None): cnv_boolean,
1386 ((TABLENS,u'style-name'), None): cnv_StyleNameRef,
1387 ((TABLENS,u'table-background'), None): cnv_boolean,
1388 ((TABLENS,u'table'), None): cnv_integer,
1389 ((TABLENS,u'table-name'), None): cnv_string,
1390 ((TABLENS,u'target-cell-address'), None): cnv_string,
1391 ((TABLENS,u'target-cell-address'), None): cnv_string,
1392 ((TABLENS,u'target-range-address'), None): cnv_string,
1393 ((TABLENS,u'target-range-address'), None): cnv_string,
1394 ((TABLENS,u'template-name'), None): cnv_string,
1395 ((TABLENS,u'title'), None): cnv_string,
1396 ((TABLENS,u'track-changes'), None): cnv_boolean,
1397 ((TABLENS,u'type'), None): cnv_string,
1398 ((TABLENS,u'use-banding-columns-styles'), None): cnv_boolean,
1399 ((TABLENS,u'use-banding-rows-styles'), None): cnv_boolean,
1400 ((TABLENS,u'use-first-column-styles'), None): cnv_boolean,
1401 ((TABLENS,u'use-first-row-styles'), None): cnv_boolean,
1402 ((TABLENS,u'use-labels'), None): cnv_string,
1403 ((TABLENS,u'use-last-column-styles'), None): cnv_boolean,
1404 ((TABLENS,u'use-last-row-styles'), None): cnv_boolean,
1405 ((TABLENS,u'use-regular-expressions'), None): cnv_boolean,
1406 ((TABLENS,u'use-wildcards'), None): cnv_boolean,
1407 ((TABLENS,u'used-hierarchy'), None): cnv_integer,
1408 ((TABLENS,u'user-name'), None): cnv_string,
1409 ((TABLENS,u'value'), None): cnv_string,
1410 ((TABLENS,u'value'), None): cnv_string,
1411 ((TABLENS,u'value-type'), None): cnv_string,
1412 ((TABLENS,u'visibility'), None): cnv_string,
1413 ((TEXTNS,u'active'), None): cnv_boolean,
1414 ((TEXTNS,u'address'), None): cnv_string,
1415 ((TEXTNS,u'alphabetical-separators'), None): cnv_boolean,
1416 ((TEXTNS,u'anchor-page-number'), None): cnv_positiveInteger,
1417 ((TEXTNS,u'anchor-type'), None): cnv_string,
1418 ((TEXTNS,u'animation'), None): cnv_string,
1419 ((TEXTNS,u'animation-delay'), None): cnv_string,
1420 ((TEXTNS,u'animation-direction'), None): cnv_string,
1421 ((TEXTNS,u'animation-repeat'), None): cnv_string,
1422 ((TEXTNS,u'animation-start-inside'), None): cnv_boolean,
1423 ((TEXTNS,u'animation-steps'), None): cnv_length,
1424 ((TEXTNS,u'animation-stop-inside'), None): cnv_boolean,
1425 ((TEXTNS,u'annote'), None): cnv_string,
1426 ((TEXTNS,u'author'), None): cnv_string,
1427 ((TEXTNS,u'bibliography-data-field'), None): cnv_string,
1428 ((TEXTNS,u'bibliography-type'), None): cnv_string,
1429 ((TEXTNS,u'booktitle'), None): cnv_string,
1430 ((TEXTNS,u'bullet-char'), None): cnv_string,
1431 ((TEXTNS,u'bullet-relative-size'), None): cnv_string,
1432 ((TEXTNS,u'c'), None): cnv_nonNegativeInteger,
1433 ((TEXTNS,u'capitalize-entries'), None): cnv_boolean,
1434 ((TEXTNS,u'caption-sequence-format'), None): cnv_string,
1435 ((TEXTNS,u'caption-sequence-name'), None): cnv_string,
1436 ((TEXTNS,u'change-id'), None): cnv_IDREF,
1437 ((TEXTNS,u'chapter'), None): cnv_string,
1438 ((TEXTNS,u'citation-body-style-name'), None): cnv_StyleNameRef,
1439 ((TEXTNS,u'citation-style-name'), None): cnv_StyleNameRef,
1440 ((TEXTNS,u'class-names'), None): cnv_NCNames,
1441 ((TEXTNS,u'column-name'), None): cnv_string,
1442 ((TEXTNS,u'combine-entries'), None): cnv_boolean,
1443 ((TEXTNS,u'combine-entries-with-dash'), None): cnv_boolean,
1444 ((TEXTNS,u'combine-entries-with-pp'), None): cnv_boolean,
1445 ((TEXTNS,u'comma-separated'), None): cnv_boolean,
1446 ((TEXTNS,u'cond-style-name'), None): cnv_StyleNameRef,
1447 ((TEXTNS,u'condition'), None): cnv_formula,
1448 ((TEXTNS,u'connection-name'), None): cnv_string,
1449 ((TEXTNS,u'consecutive-numbering'), None): cnv_boolean,
1450 ((TEXTNS,u'continue-list'), None): cnv_IDREF,
1451 ((TEXTNS,u'continue-numbering'), None): cnv_boolean,
1452 ((TEXTNS,u'copy-outline-levels'), None): cnv_boolean,
1453 ((TEXTNS,u'count-empty-lines'), None): cnv_boolean,
1454 ((TEXTNS,u'count-in-text-boxes'), None): cnv_boolean,
1455 ((TEXTNS,u'current-value'), None): cnv_boolean,
1456 ((TEXTNS,u'custom1'), None): cnv_string,
1457 ((TEXTNS,u'custom2'), None): cnv_string,
1458 ((TEXTNS,u'custom3'), None): cnv_string,
1459 ((TEXTNS,u'custom4'), None): cnv_string,
1460 ((TEXTNS,u'custom5'), None): cnv_string,
1461 ((TEXTNS,u'database-name'), None): cnv_string,
1462 ((TEXTNS,u'date-adjust'), None): cnv_duration,
1463 ((TEXTNS,u'date-value'), None): cnv_date,
1464# ((TEXTNS,u'date-value'), None): cnv_dateTime,
1465 ((TEXTNS,u'default-style-name'), None): cnv_StyleNameRef,
1466 ((TEXTNS,u'description'), None): cnv_string,
1467 ((TEXTNS,u'display'), None): cnv_string,
1468 ((TEXTNS,u'display-levels'), None): cnv_positiveInteger,
1469 ((TEXTNS,u'display-outline-level'), None): cnv_nonNegativeInteger,
1470 ((TEXTNS,u'dont-balance-text-columns'), None): cnv_boolean,
1471 ((TEXTNS,u'duration'), None): cnv_duration,
1472 ((TEXTNS,u'edition'), None): cnv_string,
1473 ((TEXTNS,u'editor'), None): cnv_string,
1474 ((TEXTNS,u'filter-name'), None): cnv_string,
1475 ((TEXTNS,u'fixed'), None): cnv_boolean,
1476 ((TEXTNS,u'footnotes-position'), None): cnv_string,
1477 ((TEXTNS,u'formula'), None): cnv_formula,
1478 ((TEXTNS,u'global'), None): cnv_boolean,
1479 ((TEXTNS,u'howpublished'), None): cnv_string,
1480 ((TEXTNS,u'id'), None): cnv_ID,
1481# ((TEXTNS,u'id'), None): cnv_string,
1482 ((TEXTNS,u'identifier'), None): cnv_string,
1483 ((TEXTNS,u'ignore-case'), None): cnv_boolean,
1484 ((TEXTNS,u'increment'), None): cnv_nonNegativeInteger,
1485 ((TEXTNS,u'index-name'), None): cnv_string,
1486 ((TEXTNS,u'index-scope'), None): cnv_string,
1487 ((TEXTNS,u'institution'), None): cnv_string,
1488 ((TEXTNS,u'is-hidden'), None): cnv_boolean,
1489 ((TEXTNS,u'is-list-header'), None): cnv_boolean,
1490 ((TEXTNS,u'isbn'), None): cnv_string,
1491 ((TEXTNS,u'issn'), None): cnv_string,
1492 ((TEXTNS,u'issn'), None): cnv_string,
1493 ((TEXTNS,u'journal'), None): cnv_string,
1494 ((TEXTNS,u'key'), None): cnv_string,
1495 ((TEXTNS,u'key1'), None): cnv_string,
1496 ((TEXTNS,u'key1-phonetic'), None): cnv_string,
1497 ((TEXTNS,u'key2'), None): cnv_string,
1498 ((TEXTNS,u'key2-phonetic'), None): cnv_string,
1499 ((TEXTNS,u'kind'), None): cnv_string,
1500 ((TEXTNS,u'label'), None): cnv_string,
1501 ((TEXTNS,u'label-followed-by'), None): cnv_string,
1502 ((TEXTNS,u'level'), None): cnv_positiveInteger,
1503 ((TEXTNS,u'line-break'), None): cnv_boolean,
1504 ((TEXTNS,u'line-number'), None): cnv_string,
1505 ((TEXTNS,u'list-id'), None): cnv_NCName,
1506 ((TEXTNS,u'list-level-position-and-space-mode'), None): cnv_string,
1507 ((TEXTNS,u'list-tab-stop-position'), None): cnv_length,
1508 ((TEXTNS,u'main-entry'), None): cnv_boolean,
1509 ((TEXTNS,u'main-entry-style-name'), None): cnv_StyleNameRef,
1510 ((TEXTNS,u'master-page-name'), None): cnv_StyleNameRef,
1511 ((TEXTNS,u'min-label-distance'), None): cnv_string,
1512 ((TEXTNS,u'min-label-width'), None): cnv_string,
1513 ((TEXTNS,u'month'), None): cnv_string,
1514 ((TEXTNS,u'name'), None): cnv_string,
1515 ((TEXTNS,u'note-class'), None): cnv_textnoteclass,
1516 ((TEXTNS,u'note'), None): cnv_string,
1517 ((TEXTNS,u'number'), None): cnv_string,
1518 ((TEXTNS,u'number-lines'), None): cnv_boolean,
1519 ((TEXTNS,u'number-position'), None): cnv_string,
1520 ((TEXTNS,u'numbered-entries'), None): cnv_boolean,
1521 ((TEXTNS,u'offset'), None): cnv_string,
1522 ((TEXTNS,u'organizations'), None): cnv_string,
1523 ((TEXTNS,u'outline-level'), None): cnv_string,
1524 ((TEXTNS,u'page-adjust'), None): cnv_integer,
1525 ((TEXTNS,u'pages'), None): cnv_string,
1526 ((TEXTNS,u'placeholder-type'), None): cnv_string,
1527 ((TEXTNS,u'prefix'), None): cnv_string,
1528 ((TEXTNS,u'protected'), None): cnv_boolean,
1529 ((TEXTNS,u'protection-key'), None): cnv_string,
1530 ((TEXTNS,u'protection-key-digest-algorithm'), None): cnv_anyURI,
1531 ((TEXTNS,u'publisher'), None): cnv_string,
1532 ((TEXTNS,u'ref-name'), None): cnv_string,
1533 ((TEXTNS,u'reference-format'), None): cnv_string,
1534 ((TEXTNS,u'relative-tab-stop-position'), None): cnv_boolean,
1535 ((TEXTNS,u'report-type'), None): cnv_string,
1536 ((TEXTNS,u'restart-numbering'), None): cnv_boolean,
1537 ((TEXTNS,u'restart-on-page'), None): cnv_boolean,
1538 ((TEXTNS,u'row-number'), None): cnv_nonNegativeInteger,
1539 ((TEXTNS,u'school'), None): cnv_string,
1540 ((TEXTNS,u'section-name'), None): cnv_string,
1541 ((TEXTNS,u'select-page'), None): cnv_string,
1542 ((TEXTNS,u'separation-character'), None): cnv_string,
1543 ((TEXTNS,u'series'), None): cnv_string,
1544 ((TEXTNS,u'sort-algorithm'), None): cnv_string,
1545 ((TEXTNS,u'sort-ascending'), None): cnv_boolean,
1546 ((TEXTNS,u'sort-by-position'), None): cnv_boolean,
1547 ((TEXTNS,u'space-before'), None): cnv_string,
1548 ((TEXTNS,u'start-numbering-at'), None): cnv_string,
1549 ((TEXTNS,u'start-value'), None): cnv_nonNegativeInteger,
1550 ((TEXTNS,u'start-value'), None): cnv_positiveInteger,
1551 ((TEXTNS,u'string-value'), None): cnv_string,
1552 ((TEXTNS,u'string-value-if-false'), None): cnv_string,
1553 ((TEXTNS,u'string-value-if-true'), None): cnv_string,
1554 ((TEXTNS,u'string-value-phonetic'), None): cnv_string,
1555 ((TEXTNS,u'style-name'), None): cnv_StyleNameRef,
1556 ((TEXTNS,u'style-override'), None): cnv_StyleNameRef,
1557 ((TEXTNS,u'suffix'), None): cnv_string,
1558 ((TEXTNS,u'tab-ref'), None): cnv_nonNegativeInteger,
1559 ((TEXTNS,u'table-name'), None): cnv_string,
1560 ((TEXTNS,u'table-type'), None): cnv_string,
1561 ((TEXTNS,u'time-adjust'), None): cnv_duration,
1562 ((TEXTNS,u'time-value'), None): cnv_dateTime,
1563 ((TEXTNS,u'time-value'), None): cnv_time,
1564 ((TEXTNS,u'title'), None): cnv_string,
1565 ((TEXTNS,u'track-changes'), None): cnv_boolean,
1566 ((TEXTNS,u'url'), None): cnv_string,
1567 ((TEXTNS,u'use-caption'), None): cnv_boolean,
1568 ((TEXTNS,u'use-chart-objects'), None): cnv_boolean,
1569 ((TEXTNS,u'use-draw-objects'), None): cnv_boolean,
1570 ((TEXTNS,u'use-floating-frames'), None): cnv_boolean,
1571 ((TEXTNS,u'use-graphics'), None): cnv_boolean,
1572 ((TEXTNS,u'use-index-marks'), None): cnv_boolean,
1573 ((TEXTNS,u'use-index-source-styles'), None): cnv_boolean,
1574 ((TEXTNS,u'use-keys-as-entries'), None): cnv_boolean,
1575 ((TEXTNS,u'use-math-objects'), None): cnv_boolean,
1576 ((TEXTNS,u'use-objects'), None): cnv_boolean,
1577 ((TEXTNS,u'use-other-objects'), None): cnv_boolean,
1578 ((TEXTNS,u'use-outline-level'), None): cnv_boolean,
1579 ((TEXTNS,u'use-soft-page-breaks'), None): cnv_boolean,
1580 ((TEXTNS,u'use-spreadsheet-objects'), None): cnv_boolean,
1581 ((TEXTNS,u'use-tables'), None): cnv_boolean,
1582 ((TEXTNS,u'value'), None): cnv_nonNegativeInteger,
1583 ((TEXTNS,u'visited-style-name'), None): cnv_StyleNameRef,
1584 ((TEXTNS,u'volume'), None): cnv_string,
1585 ((TEXTNS,u'year'), None): cnv_string,
1586 ((XFORMSNS,u'bind'), None): cnv_string,
1587 ((XHTMLNS,u'about'), None): cnv_anyURI,
1588 ((XHTMLNS,u'content'), None): cnv_string,
1589 ((XHTMLNS,u'datatype'), None): cnv_anyURI,
1590 ((XHTMLNS,u'property'), None): cnv_anyURI,
1591 ((XLINKNS,u'actuate'), None): cnv_string,
1592 ((XLINKNS,u'href'), None): cnv_anyURI,
1593 ((XLINKNS,u'show'), None): cnv_xlinkshow,
1594 ((XLINKNS,u'title'), None): cnv_string,
1595 ((XLINKNS,u'type'), None): cnv_xlinktype,
1596 ((XMLNS,u'id'), None): cnv_NCName,
1597}
1599class AttrConverters:
1600 def convert(self, attribute, value, element):
1601 """ Based on the element, figures out how to check/convert the attribute value
1602 All values are converted to string
1603 """
1604 conversion = attrconverters.get((attribute, element.qname), None)
1605 if conversion is not None: 1605 ↛ 1606line 1605 didn't jump to line 1606, because the condition on line 1605 was never true
1606 return conversion(attribute, value, element)
1607 else:
1608 conversion = attrconverters.get((attribute, None), None)
1609 if conversion is not None: 1609 ↛ 1611line 1609 didn't jump to line 1611, because the condition on line 1609 was never false
1610 return conversion(attribute, value, element)
1611 if sys.version_info[0]==2:
1612 return unicode(value)
1613 else:
1614 return str(value)