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

2796
XMLCONF

File diff suppressed because it is too large Load Diff

View File

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