schon wieder weniger! wfness natuerlich erstmal ohne validierung pruefen,
aber wenn wir validieren ist ein validierungsfehler auch gut genug.
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user