#| -*-Scheme-*-
-$Id: xml-struct.scm,v 1.49 2005/12/19 04:00:37 cph Exp $
+$Id: xml-struct.scm,v 1.50 2006/01/26 05:44:33 cph Exp $
-Copyright 2001,2002,2003,2004,2005 Massachusetts Institute of Technology
+Copyright 2001,2002,2003,2004,2005,2006 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
(if (char-whitespace? (wide-string-ref ws (fix:- n 1))) "" " "))
" "))))
+(define (xml-stylesheet . items)
+ (make-xml-processing-instructions
+ 'xml-stylesheet
+ (call-with-output-string
+ (lambda (port)
+ (for-each (lambda (attr)
+ (write-char #\space port)
+ (write-string (xml-name-string (xml-attribute-name attr))
+ port)
+ (write-char #\= port)
+ (write-char #\" port)
+ (write-string (xml-attribute-value attr) port)
+ (write-char #\" port))
+ (apply xml-attrs items))))))
+
(define (standard-xml-element-constructor qname iri empty?)
(let ((name (make-xml-name qname iri)))
(if empty?
(lambda (object)
(and (xml-element? object)
(xml-name=? (xml-element-name object) name)))))
-
+\f
(define (xml-attrs . items)
(let ((flush
(lambda (name attrs)
#| -*-Scheme-*-
-$Id: xml.pkg,v 1.59 2005/12/19 04:00:32 cph Exp $
+$Id: xml.pkg,v 1.60 2006/01/26 05:44:25 cph Exp $
-Copyright 2001,2002,2003,2004,2005 Massachusetts Institute of Technology
+Copyright 2001,2002,2003,2004,2005,2006 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
xml-processing-instructions-name
xml-processing-instructions-text
xml-processing-instructions?
+ xml-stylesheet
xml-unparsed-!entity-id
xml-unparsed-!entity-name
xml-unparsed-!entity-notation