From: Chris Hanson Date: Fri, 15 Oct 2004 18:34:22 +0000 (+0000) Subject: Rename XML-ELEMENT-CONTENTS to XML-ELEMENT-CONTENT. X-Git-Tag: 20090517-FFI~1544 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=c07ed44c86fa51e1ba2781f0f315ee2ce1c88d43;p=mit-scheme.git Rename XML-ELEMENT-CONTENTS to XML-ELEMENT-CONTENT. --- diff --git a/v7/src/xml/xml-output.scm b/v7/src/xml/xml-output.scm index 658454a12..ef288773e 100644 --- a/v7/src/xml/xml-output.scm +++ b/v7/src/xml/xml-output.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: xml-output.scm,v 1.34 2004/07/24 03:45:49 cph Exp $ +$Id: xml-output.scm,v 1.35 2004/10/15 18:34:20 cph Exp $ Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology @@ -136,17 +136,17 @@ USA. (define-method %write-xml ((element ) ctx) (let ((name (xml-element-name element)) - (contents (xml-element-contents element))) + (content (xml-element-content element))) (emit-string "<" ctx) (write-xml-name name ctx) (write-xml-attributes (xml-element-attributes element) - (if (pair? contents) 1 3) + (if (pair? content) 1 3) ctx) - (if (pair? contents) + (if (pair? content) (begin (emit-string ">" ctx) (for-each (lambda (content) (%write-xml content ctx)) - contents) + content) (emit-string "" ctx)) diff --git a/v7/src/xml/xml-struct.scm b/v7/src/xml/xml-struct.scm index 2aca64af6..9144aff22 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.46 2004/08/12 06:31:01 cph Exp $ +$Id: xml-struct.scm,v 1.47 2004/10/15 18:34:22 cph Exp $ Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology @@ -172,7 +172,7 @@ USA. (define-xml-type element (name xml-name?) (attributes xml-attribute-list?) - (contents canonicalize canonicalize-content)) + (content canonicalize canonicalize-content)) (define (xml-attribute-list? object) (and (list-of-type? object xml-attribute?) @@ -476,7 +476,7 @@ USA. (lambda (attrs . items) (make-xml-element name (if (not attrs) '() attrs) - (flatten-xml-element-contents items)))))) + (flatten-xml-element-content items)))))) (define (standard-xml-element-predicate qname iri) (let ((name (make-xml-name qname iri))) @@ -509,7 +509,7 @@ USA. (error "Unknown item passed to xml-attrs:" item)))) '()))) -(define (flatten-xml-element-contents item) +(define (flatten-xml-element-content item) (letrec ((scan-item (lambda (item tail) diff --git a/v7/src/xml/xml.pkg b/v7/src/xml/xml.pkg index 1d4c46c19..fbb9f2d06 100644 --- a/v7/src/xml/xml.pkg +++ b/v7/src/xml/xml.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: xml.pkg,v 1.53 2004/08/10 01:03:02 cph Exp $ +$Id: xml.pkg,v 1.54 2004/10/15 18:34:13 cph Exp $ Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology @@ -87,6 +87,9 @@ USA. (files "xml-struct") (parent (runtime xml)) (export () + (flatten-xml-element-contents flatten-xml-element-content) + (set-xml-element-contents! set-xml-element-content!) + (xml-element-contents xml-element-content) @@ -119,7 +122,7 @@ USA. error:not-xml-parameter-entity-ref error:not-xml-processing-instructions error:not-xml-unparsed-!entity - flatten-xml-element-contents + flatten-xml-element-content guarantee-xml-!attlist guarantee-xml-!element guarantee-xml-!entity @@ -176,7 +179,7 @@ USA. set-xml-dtd-internal! set-xml-dtd-root! set-xml-element-attributes! - set-xml-element-contents! + set-xml-element-content! set-xml-element-name! set-xml-entity-ref-name! set-xml-external-id-id! @@ -231,7 +234,7 @@ USA. xml-dtd-root xml-dtd? xml-element-attributes - xml-element-contents + xml-element-content xml-element-name xml-element-namespace-decls xml-element?