From 4da48364b63085fb7917ee0999ea6e65d99884cb Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 24 Sep 2003 04:55:56 +0000 Subject: [PATCH] Fix thinko. --- v7/src/xml/xml-struct.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/v7/src/xml/xml-struct.scm b/v7/src/xml/xml-struct.scm index 51a6bec09..6832b00f4 100644 --- a/v7/src/xml/xml-struct.scm +++ b/v7/src/xml/xml-struct.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: xml-struct.scm,v 1.28 2003/09/24 04:19:01 cph Exp $ +$Id: xml-struct.scm,v 1.29 2003/09/24 04:55:56 cph Exp $ Copyright 2001,2002,2003 Massachusetts Institute of Technology @@ -59,8 +59,11 @@ USA. (error:wrong-type-argument object "an XML name" caller)) (define (make-xml-namespace-uri uri) - (if (namespace-uri-string? uri) - (string->symbol uri) + (if (string? uri) + (begin + (if (not (namespace-uri-string? uri)) + (error:not-xml-namespace-uri uri 'MAKE-XML-NAMESPACE-URI)) + (string->symbol uri)) (begin (if uri (guarantee-xml-namespace-uri uri 'MAKE-XML-NAMESPACE-URI)) uri))) -- 2.25.1