From b73668e8fa015a77d30d155e2ab2fab311b646ac Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 24 Sep 2008 00:05:50 +0000 Subject: [PATCH] Change MAKE-XML-NAME so that URI arg is optional. --- v7/src/xml/xml-names.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v7/src/xml/xml-names.scm b/v7/src/xml/xml-names.scm index df113c6c5..ace4abaa2 100644 --- a/v7/src/xml/xml-names.scm +++ b/v7/src/xml/xml-names.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: xml-names.scm,v 1.19 2008/01/30 20:02:42 cph Exp $ +$Id: xml-names.scm,v 1.20 2008/09/24 00:05:50 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -29,10 +29,11 @@ USA. (declare (usual-integrations)) -(define (make-xml-name qname uri) +(define (make-xml-name qname #!optional uri) (let ((qname (make-xml-qname qname)) (uri-string - (cond ((string? uri) uri) + (cond ((default-object? uri) (null-xml-namespace-uri)) + ((string? uri) uri) ((wide-string? uri) (wide-string->utf8-string uri)) ((symbol? uri) (symbol-name uri)) ((uri? uri) (uri->string uri)) -- 2.25.1