Implement XML-MISC-CONTENT-ITEM?.
authorChris Hanson <org/chris-hanson/cph>
Mon, 28 Jun 2004 03:26:20 +0000 (03:26 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 28 Jun 2004 03:26:20 +0000 (03:26 +0000)
v7/src/xml/xml-struct.scm
v7/src/xml/xml.pkg

index bf460b0f6fcd8f338dd2268c02f18d7d45762bcc..e68a128243538a83ffab639421da04027cb32a7f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: xml-struct.scm,v 1.41 2004/06/27 06:26:33 cph Exp $
+$Id: xml-struct.scm,v 1.42 2004/06/28 03:26:20 cph Exp $
 
 Copyright 2001,2002,2003 Massachusetts Institute of Technology
 
@@ -111,11 +111,12 @@ USA.
   (misc-3 xml-misc-content?))
 
 (define (xml-misc-content? object)
-  (list-of-type? object
-    (lambda (object)
-      (or (xml-comment? object)
-         (xml-whitespace-string? object)
-         (xml-processing-instructions? object)))))
+  (list-of-type? object xml-misc-content-item?))
+
+(define (xml-misc-content-item? object)
+  (or (xml-comment? object)
+      (xml-whitespace-string? object)
+      (xml-processing-instructions? object)))
 
 (define (xml-whitespace-string? object)
   (string-composed-of? object char-set:xml-whitespace))
index b905c0dab3d7af6a42063efa88d76727a5c37487..989123a6053a1b3493577654cbc1d2e5ee762f20 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: xml.pkg,v 1.40 2004/06/27 06:26:13 cph Exp $
+$Id: xml.pkg,v 1.41 2004/06/28 03:25:57 cph Exp $
 
 Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology
 
@@ -235,6 +235,7 @@ USA.
          xml-external-id-id
          xml-external-id-iri
          xml-external-id?
+         xml-misc-content-item?
          xml-misc-content?
          xml-parameter-!entity-name
          xml-parameter-!entity-value
@@ -275,7 +276,8 @@ USA.
          char-set:xml-whitespace
          read-xml
          read-xml-file
-         string->xml)
+         string->xml
+         xml-processing-instructions-handlers)
   (export (runtime xml)
          alphabet:name-initial
          alphabet:name-subsequent