#| -*-Scheme-*-
-$Id: xml-parser.scm,v 1.60 2004/05/26 15:26:29 cph Exp $
+$Id: xml-parser.scm,v 1.61 2004/06/27 06:26:26 cph Exp $
Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology
(let ((entry (assq name *pi-handlers*)))
(if entry
(let ((content ((cadr entry) text)))
- (if (not (list-of-type? content valid-content?))
+ (if (not (valid-content? content))
(perror p
"Illegal output from XML processor"
name))
(values "")))))))))
(define parse-pi:misc
- (pi-parser
- (lambda (object)
- (or (string? object)
- (xml-comment? object)
- (xml-processing-instructions? object)))))
+ (pi-parser xml-misc-content?))
(define parse-pi:element
- (pi-parser
- (lambda (object)
- (or (string? object)
- (xml-element? object)
- (xml-comment? object)
- (xml-processing-instructions? object)))))
+ (pi-parser xml-content?))
(define parse-pi:internal-markup-decl
(pi-parser
(lambda (object)
- (or (xml-!element? object)
- (xml-!attlist? object)
- (xml-!entity? object)
- (xml-!notation? object)
- (xml-comment? object)
- (xml-processing-instructions? object)))))
+ (list-of-type? object
+ (lambda (object)
+ (or (xml-!element? object)
+ (xml-!attlist? object)
+ (xml-!entity? object)
+ (xml-!notation? object)
+ (xml-comment? object)
+ (xml-processing-instructions? object)))))))
\f
;;;; References
#| -*-Scheme-*-
-$Id: xml-struct.scm,v 1.40 2003/11/03 21:32:31 cph Exp $
+$Id: xml-struct.scm,v 1.41 2004/06/27 06:26:33 cph Exp $
Copyright 2001,2002,2003 Massachusetts Institute of Technology
\f
(define-xml-type document
(declaration (lambda (object) (or (not object) (xml-declaration? object))))
- (misc-1 misc-arg?)
+ (misc-1 xml-misc-content?)
(dtd (lambda (object) (or (not object) (xml-dtd? object))))
- (misc-2 misc-arg?)
+ (misc-2 xml-misc-content?)
(root xml-element?)
- (misc-3 misc-arg?))
+ (misc-3 xml-misc-content?))
-(define (misc-arg? object)
+(define (xml-misc-content? object)
(list-of-type? object
(lambda (object)
(or (xml-comment? object)
#| -*-Scheme-*-
-$Id: xml.pkg,v 1.39 2004/02/25 21:00:45 cph Exp $
+$Id: xml.pkg,v 1.40 2004/06/27 06:26:13 cph Exp $
Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology
xml-external-id-id
xml-external-id-iri
xml-external-id?
+ xml-misc-content?
xml-parameter-!entity-name
xml-parameter-!entity-value
xml-parameter-!entity?