| 1 |
;;; SXML serializer into XML and HTML. |
| 2 |
;;; |
| 3 |
;;; Partial conformance with |
| 4 |
;;; [1] XSLT 2.0 and XQuery 1.0 Serialization |
| 5 |
;;; W3C Candidate Recommendation 3 November 2005 |
| 6 |
;;; http://www.w3.org/TR/2005/CR-xslt-xquery-serialization-20051103/ |
| 7 |
;;; |
| 8 |
;;; This file is mechanically translated for Gauche from Dmitry |
| 9 |
;;; Lizorkin's serializer.scm from the sxml-tools project. |
| 10 |
;;; |
| 11 |
;;; Prefix for global identifiers in this module is `srl:' |
| 12 |
;;; short for "serialization" |
| 13 |
;;; |
| 14 |
;;; This software is in Public Domain. |
| 15 |
;;; IT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. |
| 16 |
|
| 17 |
(define-module sxml.serializer |
| 18 |
(use scheme.list) |
| 19 |
(export srl:sxml->string srl:display-sxml srl:parameterizable |
| 20 |
srl:sxml->xml srl:sxml->xml-noindent srl:sxml->html |
| 21 |
srl:sxml->html-noindent )) |
| 22 |
|
| 23 |
(select-module sxml.serializer) |
| 24 |
|
| 25 |
;#include-body "src/serializer.scm" |
| 26 |
|
| 27 |
;; Local variables: |
| 28 |
;; mode: scheme |
| 29 |
;; end: |