Contract
svn: r12790
This commit is contained in:
parent
3fcc58c05e
commit
0c093b73f1
|
@ -148,7 +148,6 @@
|
|||
(null? (cddr b))))
|
||||
|
||||
;; xml->xexpr : Content -> Xexpr
|
||||
;; The contract is loosely enforced.
|
||||
(define (xml->xexpr x)
|
||||
(let* ([non-dropping-combine
|
||||
(lambda (atts body)
|
||||
|
@ -170,8 +169,7 @@
|
|||
[(entity? x) (entity-text x)]
|
||||
[(or (comment? x) (pi? x) (cdata? x)) x]
|
||||
[(document? x) (error 'xml->xexpr "Expected content, given ~e\nUse document-element to extract the content." x)]
|
||||
[else ;(error 'xml->xexpr "Expected content, given ~e" x)
|
||||
x]))))
|
||||
[else (error 'xml->xexpr "Expected content, given ~e" x)]))))
|
||||
|
||||
;; attribute->srep : Attribute -> Attribute-srep
|
||||
(define (attribute->srep a)
|
||||
|
|
Loading…
Reference in New Issue
Block a user