schon wieder weniger! wfness natuerlich erstmal ohne validierung pruefen,

aber wenn wir validieren ist ein validierungsfehler auch gut genug.
This commit is contained in:
dlichteblau
2005-11-27 00:58:03 +00:00
parent 755ee198af
commit 0a33e9cce5
2 changed files with 1402 additions and 1409 deletions

View File

@ -172,12 +172,25 @@
(assert (null args))
(handler-case
(progn
(format t " [not-wf?]")
(format t " [not validating:]")
(cxml:parse-file pathname (dom:make-dom-builder) :validate nil)
(error "well-formedness violation not detected")
nil)
(cxml:well-formedness-violation ()
(format t " not-wf")
t))
(handler-case
(progn
(format t " [validating:]")
(cxml:parse-file pathname (dom:make-dom-builder) :validate t)
(error "well-formedness violation not detected")
nil)
(cxml:well-formedness-violation ()
(format t " not-wf")
t)
(cxml:validity-error ()
;; das erlauben wir mal auch, denn valide => wf
(format t " invalid")
t)))
#+(or)