Export type descriptors for each of the XML data structure types.
authorChris Hanson <org/chris-hanson/cph>
Sat, 14 Jul 2001 11:43:50 +0000 (11:43 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 14 Jul 2001 11:43:50 +0000 (11:43 +0000)
v7/src/xml/xml-struct.scm
v7/src/xml/xml.pkg

index da44e0bc02fb0a8ca64e83c7fc61b95c18a438f4..a1dc1b79b82ed475fe02ca1e2b3034a6044cce21 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: xml-struct.scm,v 1.3 2001/07/10 05:30:31 cph Exp $
+;;; $Id: xml-struct.scm,v 1.4 2001/07/14 11:43:50 cph Exp $
 ;;;
 ;;; Copyright (c) 2001 Massachusetts Institute of Technology
 ;;;
@@ -23,7 +23,8 @@
 
 (declare (usual-integrations))
 \f
-(define-structure xml-document
+(define-structure (xml-document
+                  (type-descriptor xml-document-rtd))
   declaration
   misc-1
   dtd
   root
   misc-3)
 
-(define-structure xml-declaration
+(define-structure (xml-declaration
+                  (type-descriptor xml-declaration-rtd))
   version
   encoding
   standalone)
 
 (define-structure (xml-element
+                  (type-descriptor xml-element-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-ELEMENT
                      (lambda (element port)
@@ -47,6 +50,7 @@
   contents)
 
 (define-structure (xml-processing-instructions
+                  (type-descriptor xml-processing-instructions-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-PROCESSING-INSTRUCTIONS
                      (lambda (element port)
   name
   text)
 
-(define-structure xml-uninterpreted
+(define-structure (xml-uninterpreted
+                  (type-descriptor xml-uninterpreted-rtd))
   text)
 
 (define-structure (xml-entity-reference
+                  (type-descriptor xml-entity-reference-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-ENTITY-REFERENCE
                      (lambda (reference port)
@@ -68,6 +74,7 @@
   name)
 
 (define-structure (xml-parameter-entity-reference
+                  (type-descriptor xml-parameter-entity-reference-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-PARAMETER-ENTITY-REFERENCE
                      (lambda (reference port)
@@ -87,6 +94,7 @@
   (make-string-hash-table))
 \f
 (define-structure (xml-dtd
+                  (type-descriptor xml-dtd-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-DTD
                      (lambda (dtd port)
   internal)
 
 (define-structure (xml-external-id
+                  (type-descriptor xml-external-id-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-EXTERNAL-ID
                      (lambda (dtd port)
   uri)
 
 (define-structure (xml-!element
+                  (type-descriptor xml-!element-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-!ELEMENT
                      (lambda (element port)
   content-type)
 
 (define-structure (xml-!attlist
+                  (type-descriptor xml-!attlist-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-!ATTLIST
                      (lambda (element port)
   definitions)
 
 (define-structure (xml-!entity
+                  (type-descriptor xml-!entity-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-!ENTITY
                      (lambda (element port)
   value)
 
 (define-structure (xml-unparsed-!entity
+                  (type-descriptor xml-unparsed-!entity-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-UNPARSED-!ENTITY
                      (lambda (element port)
   notation)
 
 (define-structure (xml-parameter-!entity
+                  (type-descriptor xml-parameter-!entity-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-PARAMETER-!ENTITY
                      (lambda (element port)
   value)
 
 (define-structure (xml-!notation
+                  (type-descriptor xml-!notation-rtd)
                   (print-procedure
                    (standard-unparser-method 'XML-!NOTATION
                      (lambda (element port)
index 495a768b660f0f384e007a696e90a0f444898459..780a0b6cfa80961c40891c35ccb20f740b8e85a7 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: xml.pkg,v 1.3 2001/07/12 03:20:53 cph Exp $
+;;; $Id: xml.pkg,v 1.4 2001/07/14 11:43:47 cph Exp $
 ;;;
 ;;; Copyright (c) 2001 Massachusetts Institute of Technology
 ;;;
          set-xml-unparsed-!entity-notation!
          xml-!attlist-definitions
          xml-!attlist-name
+         xml-!attlist-rtd
          xml-!attlist?
          xml-!element-content-type
          xml-!element-name
+         xml-!element-rtd
          xml-!element?
          xml-!entity-name
+         xml-!entity-rtd
          xml-!entity-value
          xml-!entity?
          xml-!notation-id
          xml-!notation-name
+         xml-!notation-rtd
          xml-!notation?
          xml-declaration-encoding
+         xml-declaration-rtd
          xml-declaration-standalone
          xml-declaration-version
          xml-declaration?
          xml-document-misc-2
          xml-document-misc-3
          xml-document-root
+         xml-document-rtd
          xml-document?
          xml-dtd-external
          xml-dtd-internal
          xml-dtd-root
+         xml-dtd-rtd
          xml-dtd?
          xml-element-attributes
          xml-element-contents
          xml-element-name
+         xml-element-rtd
          xml-element?
          xml-entity-reference-name
+         xml-entity-reference-rtd
          xml-entity-reference?
          xml-external-id-id
+         xml-external-id-rtd
          xml-external-id-uri
          xml-external-id?
          xml-intern
          xml-parameter-!entity-name
+         xml-parameter-!entity-rtd
          xml-parameter-!entity-value
          xml-parameter-!entity?
+         xml-parameter-entity-reference-rtd
          xml-parameter-entity-reference?
          xml-processing-instructions-name
+         xml-processing-instructions-rtd
          xml-processing-instructions-text
          xml-processing-instructions?
+         xml-uninterpreted-rtd
          xml-uninterpreted-text
          xml-uninterpreted?
          xml-unparsed-!entity-id
          xml-unparsed-!entity-name
          xml-unparsed-!entity-notation
+         xml-unparsed-!entity-rtd
          xml-unparsed-!entity?))
 
 (define-package (runtime xml parser)