summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter A. Bigot <pabigot@users.sourceforge.net>2010-05-28 17:21:04 -0500
committerPeter A. Bigot <pabigot@users.sourceforge.net>2010-05-28 17:21:04 -0500
commit852028f08bd34bc3a48c2b4073ae98806b219568 (patch)
treeea1d75d913a9a4fddae1a10887cb2fcf5d683f8d
parent74369bdc84bfa4a96b508bd3012e72f0a0323e6e (diff)
Basic validation on wildcards
-rw-r--r--pyxb/binding/content.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pyxb/binding/content.py b/pyxb/binding/content.py
index 220f993..136077b 100644
--- a/pyxb/binding/content.py
+++ b/pyxb/binding/content.py
@@ -716,10 +716,15 @@ class Wildcard (ContentState_mixin):
Not implemented yet: all wildcards are assumed to match all values.
"""
- # @todo check node against namespace constraint and process contents
- #print 'WARNING: Accepting node as wildcard match without validating.'
return True
+ def _validate (self, symbol_set, output_sequence):
+ # @todo check node against namespace constraint and process contents
+ #print 'WARNING: Accepting node as wildcard match without validating.'
+ if 0 == len(symbol_set):
+ return False
+ raise pyxb.IncompleteImplementationError('Wildcard validation')
+
## Local Variables:
## fill-column:78
## End: