summaryrefslogtreecommitdiff
path: root/module/sxml
Commit message (Expand)AuthorAgeFilesLines
* Remove duplicate definitions of `call/ec' and `let/ec'....* module/language/tree-il/peval.scm (let/ec): Remove. Import (ice-9 control). * module/sxml/match.scm (%call/ec-prompt, call/ec, let/ec): Remove. Import (ice-9 control). Signed-off-by: Ludovic Courtès <ludo@gnu.org> Ian Price2013-04-061-17/+2
* add #:doctype-handler to xml->sxml...* module/sxml/simple.scm (read-internal-doctype-as-string): New helper. (xml->sxml): Add #:doctype-handler argument. * doc/ref/sxml.texi (Reading and Writing XML): Document #:doctype-handler. Fix some other examples, and fix the default value of #:declare-namespaces?. * test-suite/tests/sxml.simple.test: Add all tests from the manual here. Andy Wingo2013-01-301-13/+43
* quick fix to ssax.scm...* module/sxml/ssax.scm: Fix previous commit. Andy Wingo2013-01-301-3/+4
* fix ssax:warn to work as intended...* module/sxml/ssax.scm (ssax:warn): Fix to make more sense. Andy Wingo2013-01-301-3/+5
* xml->sxml argument can be a port or a string...* module/sxml/simple.scm (xml->sxml): Allow the optional arg to be a port or a string. * doc/ref/sxml.texi (Reading and Writing XML): Update docs. Andy Wingo2013-01-281-3/+8
* make (sxml simple)'s xml->sxml more capable...* module/sxml/simple.scm (xml->sxml): Add #:namespaces, #:declare-namespaces?, #:entities, #:default-entity-handler, and #:trim-whitespace? arguments. * doc/ref/sxml.texi (Reading and Writing XML): Document the new options. Andy Wingo2013-01-281-4/+147
* ssax: treat *DEFAULT* as a fallback handler in entity alist...* module/sxml/upstream/SSAX.scm (ssax:handle-parsed-entity): Interpret *DEFAULT* as being a default handler procedure for parsed entities. Includes test. Andy Wingo2013-01-281-4/+27
* current-ssax-error-port is a parameter...* module/sxml/ssax.scm (current-ssax-error-port): Change to be a parameter. Andy Wingo2013-01-271-5/+7
* remove duplicate when/unless definitions...* module/rnrs/control.scm: * module/sxml/ssax.scm: * test-suite/lalr/common-test.scm: Remove local `when'/`unless' definitions. Andy Wingo2012-01-201-8/+1
* more define-syntax-rule usage...* module/ice-9/boot-9.scm: * module/ice-9/control.scm: * module/ice-9/futures.scm: * module/ice-9/optargs.scm: * module/ice-9/poll.scm: * module/ice-9/receive.scm: * module/ice-9/threads.scm: * module/ice-9/vlist.scm: * module/language/assembly/compile-bytecode.scm: * module/language/ecmascript/compile-tree-il.scm: * module/language/tree-il.scm: * module/oop/goops.scm: * module/oop/goops/simple.scm: * module/oop/goops/stklos.scm: * module/srfi/srfi-1.scm: * module/srfi/srfi-35.scm: * module/srfi/srfi-39.scm: * module/srfi/srfi-45.scm: * module/srfi/srfi-67/compare.scm: * module/sxml/match.scm: * module/system/repl/error-handling.scm: * module/system/repl/repl.scm: * module/system/vm/inspect.scm: * module/texinfo.scm: * module/web/server.scm: Use define-syntax-rule, where it makes sense. Andy Wingo2011-09-021-22/+15
* sxml->xml fix...* module/sxml/simple.scm (attribute-value->xml): Whoops, fix null case. Andy Wingo2010-12-021-0/+2
* sxml->xml writes directly to a port...* module/sxml/simple.scm: Remove "universal-sxslt-rules" -- it was a bad interface, and I couldn't find any users of it. (sxml->xml): Rewrite so that instead of generating another tree of data, we write the data directly to a port. Andy Wingo2010-12-021-91/+149
* ssax: add procs to define parsed entities...* module/sxml/ssax.scm (reset-parsed-entity-definitions!) (define-parsed-entity!): New heavy-handed knobs for adding to the set of parsed entity definitions. Andy Wingo2010-10-141-1/+22
* sxml-match: Always use the same prompt tag....* module/sxml/match.scm (%call/ec-prompt): New variable. (call/ec): Use it instead of creating a new prompt tag. Ludovic Courtès2010-07-151-8/+10
* sxml-match: Handle multiple-value returns....* module/sxml/sxml-match.ss (sxml-match1): Invoke ESCAPE via `call-with-values'. * test-suite/tests/sxml-match-tests.ss ("test multiple value returns"): New test. * module/sxml/match.scm: Mention the modification. Ludovic Courtès2010-05-262-2/+8
* Add (sxml match)....* module/Makefile.am (LIB_SOURCES): Add `sxml/match.scm'. (NOCOMP_SOURCES): Add `sxml/sxml-match.ss'. * module/sxml/match.scm, module/sxml/sxml-match.ss: New files. * test-suite/Makefile.am (SCM_TESTS): Add `tests/sxml.match.test'. (EXTRA_DIST): Add `tests/sxml-match-tests.ss'. * test-suite/tests/sxml-match-tests.ss, test-suite/tests/sxml.match.test: New files. * doc/ref/guile.texi (Guile Modules): Include `sxml-match.texi'. * doc/ref/sxml-match.texi: New file. * doc/ref/Makefile.am (guile_TEXINFOS): Add `sxml-match.texi'. Ludovic Courtès2010-05-252-0/+1270
* Have `sxml->xml' handle `*TOP*' nodes (bug #29260)....* module/sxml/simple.scm (universal-sxslt-rules): Add handler for `*TOP*'. Suggested by Stefan Israelsson Tampe at <https://savannah.gnu.org/bugs/index.php?29260>. * test-suite/Makefile.am (SCM_TESTS): Add `sxml.simple.test'. * test-suite/tests/sxml.simple.test: New file. * THANKS: Add Stefan. Ludovic Courtès2010-05-111-1/+2
* Remove `fold' from (sxml fold)....* module/sxml/fold.scm: Use (srfi srfi-1). (fold): Remove. (fold-values): Update docstring accordingly. * test-suite/tests/sxml.fold.test: Use (srfi srfi-1). Ludovic Courtès2010-04-091-12/+3
* import statprof, sxml, and texinfo from guile-lib...* module/Makefile.am (LIB_SOURCES): Add statprof, sxml, and texinfo to the build. (NOCOMP_SOURCES): Reindent, and add the upstream SSAX files. * module/statprof.scm: * module/sxml/apply-templates.scm: * module/sxml/fold.scm: * module/sxml/simple.scm: * module/sxml/ssax.scm: * module/sxml/ssax/input-parse.scm: * module/sxml/transform.scm: * module/sxml/upstream/COPYING.SSAX: * module/sxml/upstream/SSAX.scm: * module/sxml/upstream/SXML-tree-trans.scm: * module/sxml/upstream/SXPath-old.scm: * module/sxml/upstream/assert.scm: * module/sxml/upstream/input-parse.scm: * module/sxml/xpath.scm: * module/texinfo.scm: * module/texinfo/docbook.scm: * module/texinfo/html.scm: * module/texinfo/indexing.scm: * module/texinfo/plain-text.scm: * module/texinfo/reflection.scm: * module/texinfo/serialize.scm: * module/texinfo/string-utils.scm: Add files from guile-lib to Guile. It's only Richard, Andreas, Rob, and myself that have copyright on these, and we have all assigned to the FSF. SSAX itself is in the public domain. Andy Wingo2009-12-2113-0/+6787