Allow URIs as char-data.
authorChris Hanson <org/chris-hanson/cph>
Thu, 2 Feb 2006 20:50:26 +0000 (20:50 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 2 Feb 2006 20:50:26 +0000 (20:50 +0000)
v7/src/xml/xml-struct.scm

index 662698a650f53c30699f40d5bf743d5f00e9c595..d61dbe4913dcd0a24497ac711684665acebf8d88 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: xml-struct.scm,v 1.53 2006/01/31 06:14:29 cph Exp $
+$Id: xml-struct.scm,v 1.54 2006/02/02 20:50:26 cph Exp $
 
 Copyright 2001,2002,2003,2004,2005,2006 Massachusetts Institute of Technology
 
@@ -168,6 +168,8 @@ USA.
        ((and (string? object)
              (utf8-string-valid? object))
         object)
+       ((uri? object)
+        (uri->string object))
        (else (error:wrong-type-datum object "an XML char data"))))
 
 (define-xml-type element