Lines Matching refs:node
56 def handle_valid(node, schema):
61 instance = node.prop("dtd")
64 child = node.children
84 print "instance line %d" % (node.lineNo())
96 nb_instances_tests, node.lineNo())
109 def handle_invalid(node, schema):
114 instance = node.prop("dtd")
117 child = node.children
137 print "instance line %d" % (node.lineNo())
150 # nb_instances_tests, node.lineNo())
163 def handle_correct(node):
169 child = node.children
189 def handle_incorrect(node):
195 child = node.children
221 def handle_resource(node, dir):
225 name = node.prop('name')
238 child = node.children
248 def handle_dir(node, dir):
250 name = node.prop('name')
262 dirs = node.xpathEval('dir')
265 res = node.xpathEval('resource')
272 def handle_testCase(node):
277 sections = node.xpathEval('string(section)')
280 nb_schemas_tests, node.lineNo(), sections))
283 print "test %d line %d" % (nb_schemas_tests, node.lineNo())
285 dirs = node.xpathEval('dir')
288 res = node.xpathEval('resource')
292 tsts = node.xpathEval('incorrect')
295 print "warning test line %d has more than one <incorrect> example" %(node.lineNo())
298 tsts = node.xpathEval('correct')
301 print "warning test line %d has more than one <correct> example"% (node.lineNo())
304 print "warning <testCase> line %d has no <correct> nor <incorrect> child" % (node.lineNo())
308 valids = node.xpathEval('valid')
309 invalids = node.xpathEval('invalid')
321 def handle_testSuite(node, level = 0):
332 docs = node.xpathEval('documentation')
333 authors = node.xpathEval('author')
344 sections = node.xpathEval('section')
351 for test in node.xpathEval('testCase'):
353 for test in node.xpathEval('testSuite'):