-;;; -*-Scheme-*-
-;;;
-;;; $Id: xml-struct.scm,v 1.7 2002/12/07 04:14:19 cph Exp $
-;;;
-;;; Copyright (c) 2001, 2002 Massachusetts Institute of Technology
-;;;
-;;; This file is part of MIT Scheme.
-;;;
-;;; MIT Scheme is free software; you can redistribute it and/or modify
-;;; it under the terms of the GNU General Public License as published
-;;; by the Free Software Foundation; either version 2 of the License,
-;;; or (at your option) any later version.
-;;;
-;;; MIT Scheme is distributed in the hope that it will be useful, but
-;;; WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-;;; General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with MIT Scheme; if not, write to the Free Software
-;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-;;; 02111-1307, USA.
+#| -*-Scheme-*-
+
+$Id: xml-struct.scm,v 1.8 2003/01/26 06:28:15 cph Exp $
+
+Copyright 2001,2002,2003 Massachusetts Institute of Technology
+
+This file is part of MIT Scheme.
+
+MIT Scheme is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+
+MIT Scheme is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with MIT Scheme; if not, write to the Free Software Foundation,
+Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+|#
;;;; XML data structures
(type-descriptor xml-uninterpreted-rtd))
text)
-(define (xml-intern string)
- ;; Prevents XML names from cluttering the symbol table.
- (or (hash-table/get xml-tokens string #f)
- (let ((symbol (string->uninterned-symbol string)))
- (hash-table/put! xml-tokens string symbol)
- symbol)))
+(define (xml-intern name)
+ (string->symbol name))
-(define xml-tokens
- (make-string-hash-table))
-\f
(define-structure (xml-dtd
(type-descriptor xml-dtd-rtd)
(print-procedure
port)))))
id
uri)
-
+\f
(define-structure (xml-!element
(type-descriptor xml-!element-rtd)
(print-procedure