;;; -*-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
;;;
(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)
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)
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)
(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)
;;; -*-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)