1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
6 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Mark H Weaver <mhw@netris.org>
8 ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2015 Raimon Grau <raimonster@gmail.com>
10 ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
11 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
12 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
13 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
14 ;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
15 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
16 ;;; Copyright © 2016, 2017, 2018 Marius Bakke <mbakke@fastmail.com>
17 ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
18 ;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
19 ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
20 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
21 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
23 ;;; This file is part of GNU Guix.
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38 (define-module (gnu packages xml)
39 #:use-module (gnu packages)
40 #:use-module (gnu packages autotools)
41 #:use-module (gnu packages compression)
42 #:use-module (gnu packages gnupg)
43 #:use-module (gnu packages java)
44 #:use-module (gnu packages gnuzilla)
45 #:use-module (gnu packages haskell)
46 #:use-module (gnu packages haskell-check)
47 #:use-module (gnu packages perl)
48 #:use-module (gnu packages perl-check)
49 #:use-module (gnu packages python)
50 #:use-module (gnu packages tls)
51 #:use-module (gnu packages web)
52 #:use-module ((guix licenses) #:prefix license:)
53 #:use-module (guix packages)
54 #:use-module (guix download)
55 #:use-module (guix build-system ant)
56 #:use-module (guix build-system cmake)
57 #:use-module (guix build-system gnu)
58 #:use-module (guix build-system perl)
59 #:use-module (guix build-system python)
60 #:use-module (guix build-system haskell)
61 #:use-module (gnu packages linux)
62 #:use-module (gnu packages pkg-config))
70 (uri (string-append "mirror://sourceforge/expat/expat/"
71 version "/expat-" version ".tar.bz2"))
74 "1xpd78sp7m34jqrw5x13bz7kgz0n6aj15wn4zj4gfx3ypbpk5p6r"))))
75 (build-system gnu-build-system)
76 (home-page "https://libexpat.github.io/")
77 (synopsis "Stream-oriented XML parser library written in C")
79 "Expat is an XML parser library written in C. It is a
80 stream-oriented parser in which an application registers handlers for
81 things the parser might find in the XML document (like start tags).")
82 (license license:expat)))
84 (define-public libebml
91 (uri (string-append "https://dl.matroska.org/downloads/"
92 name "/" name "-" version ".tar.xz"))
95 "005a0ipqnfbsq47zrc61zszi439jw32q5xd6dc1jyb3lc0zl266q"))))
96 (build-system gnu-build-system)
97 (home-page "https://matroska-org.github.io/libebml/")
98 (synopsis "C++ library to parse EBML files")
99 (description "libebml is a C++ library to read and write @dfn{EBML}
100 (Extensible Binary Meta Language) files. EBML was designed to be a simplified
101 binary extension of XML for the purpose of storing and manipulating data in a
102 hierarchical form with variable field lengths.")
103 (license license:lgpl2.1)))
105 (define-public libxml2
111 (uri (string-append "ftp://xmlsoft.org/libxml2/libxml2-"
115 "034hylzspvkm0p4bczqbf8q05a7r2disr8dz725x4bin61ymwg7n"))))
116 (build-system gnu-build-system)
117 (home-page "http://www.xmlsoft.org/")
118 (synopsis "C parser for XML")
119 (propagated-inputs `(("zlib" ,zlib))) ; libxml2.la says '-lz'.
120 (native-inputs `(("perl" ,perl)))
121 ;; $XML_CATALOG_FILES lists 'catalog.xml' files found in under the 'xml'
122 ;; sub-directory of any given package.
123 (native-search-paths (list (search-path-specification
124 (variable "XML_CATALOG_FILES")
127 (file-pattern "^catalog\\.xml$")
128 (file-type 'regular))))
129 (search-paths native-search-paths)
131 "Libxml2 is the XML C parser and toolkit developed for the Gnome
132 project (but it is usable outside of the Gnome platform).")
133 (license license:x11)))
135 (define-public python-libxml2
136 (package/inherit libxml2
137 (name "python-libxml2")
138 (build-system python-build-system)
140 `(;; XXX: Tests are specified in 'Makefile.am', but not in 'setup.py'.
143 (modify-phases %standard-phases
146 (lambda* (#:key inputs #:allow-other-keys)
148 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
149 "cross-libc" "libc")))
150 (libxml2 (assoc-ref inputs "libxml2")))
151 (substitute* "setup.py"
152 ;; For 'libxml2/libxml/tree.h'.
154 (format #f "ROOT = r'~a'" libxml2))
157 (string-append glibc "/include")))))))))
158 (inputs `(("libxml2" ,libxml2)))
159 (synopsis "Python bindings for the libxml2 library")))
161 (define-public python2-libxml2
162 (package-with-python2 python-libxml2))
164 (define-public libxslt
170 (uri (string-append "ftp://xmlsoft.org/libxslt/libxslt-"
174 "0q2l6m56iv3ysxgm2walhg4c9wp7q183jb328687i9zlp85csvjj"))
175 (patches (search-patches "libxslt-generated-ids.patch"))))
176 (build-system gnu-build-system)
177 (home-page "http://xmlsoft.org/XSLT/index.html")
178 (synopsis "C library for applying XSLT stylesheets to XML documents")
179 (inputs `(("libgcrypt" ,libgcrypt)
181 ("python" ,python-minimal-wrapper)
184 "Libxslt is an XSLT C library developed for the GNOME project. It is
185 based on libxml for XML parsing, tree manipulation and XPath support.")
186 (license license:x11)))
188 (define libxslt/fixed
192 (inherit (package-source libxslt))
193 (patches (search-patches "libxslt-CVE-2016-4738.patch"
194 "libxslt-CVE-2017-5029.patch"
195 "libxslt-generated-ids.patch"))))))
197 (define-public perl-graph-readwrite
199 (name "perl-graph-readwrite")
205 "mirror://cpan/authors/id/N/NE/NEILB/Graph-ReadWrite-"
210 "0jlsg64pmy6ka5q5gy851nnyfgjzvhyxc576bhns3vi2x5ng07mh"))))
211 (build-system perl-build-system)
213 `(("perl-graph" ,perl-graph)
214 ("perl-parse-yapp" ,perl-parse-yapp)
215 ("perl-xml-parser" ,perl-xml-parser)
216 ("perl-xml-writer" ,perl-xml-writer)))
217 (home-page "http://search.cpan.org/dist/Graph-ReadWrite")
218 (synopsis "Modules for reading and writing directed graphs")
219 (description "This is a collection of perl classes for reading and writing
220 directed graphs in a variety of file formats. The graphs are represented in
221 Perl using Jarkko Hietaniemi's @code{Graph} classes.
223 There are two base classes. @code{Graph::Reader} is the base class for classes
224 which read a graph file and create an instance of the Graph class.
225 @code{Graph::Writer} is the base class for classes which take an instance of
226 the @code{Graph} class and write it out in a specific file format.")
227 (license license:perl-license)))
229 (define-public perl-xml-atom
231 (name "perl-xml-atom")
235 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
236 "XML-Atom-" version ".tar.gz"))
239 "1wa8kfy1w4mg7kzxim4whyprkn48a2il6fap0b947zywknw4c6y6"))))
240 (build-system perl-build-system)
243 (modify-phases %standard-phases
244 (add-before 'check 'set-perl-search-path
247 (string-append (getcwd) ":"
248 (getenv "PERL5LIB")))
251 `(("perl-datetime" ,perl-datetime)
252 ;; TODO package: perl-datetime-format-atom
253 ("perl-html-tagset" ,perl-html-tagset)
254 ("perl-module-build-tiny" ,perl-module-build-tiny)
255 ("perl-module-install" ,perl-module-install)
256 ("perl-xml-xpath" ,perl-xml-xpath)))
258 `(("perl-class-data-inheritable" ,perl-class-data-inheritable)
259 ("perl-datetime" ,perl-datetime)
260 ("perl-datetime-timezone" ,perl-datetime-timezone)
261 ("perl-digest-sha1" ,perl-digest-sha1)
262 ("perl-libwww" ,perl-libwww)
263 ("perl-uri" ,perl-uri)
264 ("perl-xml-libxml" ,perl-xml-libxml)
265 ("perl-xml-xpath" ,perl-xml-xpath)))
266 (home-page "http://search.cpan.org/dist/XML-Atom")
267 (synopsis "Atom feed and API implementation")
269 "Atom is a syndication, API, and archiving format for weblogs and other data.
270 @code{XML::Atom} implements the feed format as well as a client for the API.")
271 (license license:perl-license)))
273 (define-public perl-xml-descent
275 (name "perl-xml-descent")
279 (uri (string-append "mirror://cpan/authors/id/A/AN/ANDYA/"
280 "XML-Descent-" version ".tar.gz"))
283 "0l5xmw2hd95ypppz3lyvp4sn02ccsikzjwacli3ydxfdz1bbh4d7"))))
284 (build-system perl-build-system)
286 `(("perl-module-build" ,perl-module-build)))
288 `(("perl-test-differences" ,perl-test-differences)
289 ("perl-xml-tokeparser" ,perl-xml-tokeparser)))
290 (home-page "http://search.cpan.org/dist/XML-Descent")
291 (synopsis "Recursive descent XML parsing")
293 "The conventional models for parsing XML are either @dfn{DOM}
294 (a data structure representing the entire document tree is created) or
295 @dfn{SAX} (callbacks are issued for each element in the XML).
297 XML grammar is recursive - so it's nice to be able to write recursive
298 parsers for it. @code{XML::Descent} allows such parsers to be created.")
299 (license license:perl-license)))
301 (define-public perl-xml-parser
303 (name "perl-xml-parser")
308 "mirror://cpan/authors/id/T/TO/TODDR/XML-Parser-"
312 "05ij0g6bfn27iaggxf8nl5rhlwx6f6p6xmdav6rjcly3x5zd1s8s"))))
313 (build-system perl-build-system)
314 (arguments `(#:make-maker-flags
315 (let ((expat (assoc-ref %build-inputs "expat")))
316 (list (string-append "EXPATLIBPATH=" expat "/lib")
317 (string-append "EXPATINCPATH=" expat "/include")))))
318 (inputs `(("expat" ,expat)))
319 (license license:perl-license)
320 (synopsis "Perl bindings to the Expat XML parsing library")
322 "This module provides ways to parse XML documents. It is built on top of
323 XML::Parser::Expat, which is a lower level interface to James Clark's expat
324 library. Each call to one of the parsing methods creates a new instance of
325 XML::Parser::Expat which is then used to parse the document. Expat options
326 may be provided when the XML::Parser object is created. These options are
327 then passed on to the Expat object on each parse call. They can also be given
328 as extra arguments to the parse methods, in which case they override options
329 given at XML::Parser creation time.")
330 (home-page "http://search.cpan.org/dist/XML-Parser")))
332 (define-public perl-xml-tokeparser
334 (name "perl-xml-tokeparser")
338 (uri (string-append "mirror://cpan/authors/id/P/PO/PODMASTER/"
339 "XML-TokeParser-" version ".tar.gz"))
342 "1hnpwb3lh6cbgwvjjgqzcp6jm4mp612qn6ili38adc9nhkwv8fc5"))))
343 (build-system perl-build-system)
344 (propagated-inputs `(("perl-xml-parser" ,perl-xml-parser)))
345 (home-page "http://search.cpan.org/dist/XML-TokeParser")
346 (synopsis "Simplified interface to XML::Parser")
348 "@code{XML::TokeParser} provides a procedural (\"pull mode\") interface
349 to @code{XML::Parser} in much the same way that Gisle Aas'
350 @code{HTML::TokeParser} provides a procedural interface to @code{HTML::Parser}.
351 @code{XML::TokeParser} splits its XML input up into \"tokens\", each
352 corresponding to an @code{XML::Parser} event.")
353 (license license:perl-license)))
355 (define-public perl-libxml
362 "mirror://cpan/authors/id/K/KM/KMACLEOD/libxml-perl-"
366 "1jy9af0ljyzj7wakqli0437zb2vrbplqj4xhab7bfj2xgfdhawa5"))))
367 (build-system perl-build-system)
369 `(("perl-xml-parser" ,perl-xml-parser)))
370 (license license:perl-license)
371 (synopsis "Perl SAX parser using XML::Parser")
373 "XML::Parser::PerlSAX is a PerlSAX parser using the XML::Parser
375 (home-page "http://search.cpan.org/~kmacleod/libxml-perl/lib/XML/Parser/PerlSAX.pm")))
377 (define-public perl-xml-libxml
379 (name "perl-xml-libxml")
384 (uri (string-append "mirror://cpan/authors/id/S/SH/SHLOMIF/"
385 "XML-LibXML-" version ".tar.gz"))
388 "0xnl281hb590i287fxpl947f1s4zl9dnvc4ajvsqi89w23im453j"))))
389 (build-system perl-build-system)
391 `(("perl-xml-namespacesupport" ,perl-xml-namespacesupport)
392 ("perl-xml-sax" ,perl-xml-sax)))
394 `(("libxml2" ,libxml2)))
395 (home-page "http://search.cpan.org/dist/XML-LibXML")
396 (synopsis "Perl interface to libxml2")
397 (description "This module implements a Perl interface to the libxml2
398 library which provides interfaces for parsing and manipulating XML files. This
399 module allows Perl programmers to make use of the highly capable validating
400 XML parser and the high performance DOM implementation.")
401 (license license:perl-license)))
403 (define-public perl-xml-libxml-simple
405 (name "perl-xml-libxml-simple")
409 (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/"
410 "XML-LibXML-Simple-" version ".tar.gz"))
413 "1g8nlk3zdz2cclxf7azvsb3jfxmvy6ml8wmj774k4qjqcsqmzk0w"))))
414 (build-system perl-build-system)
416 `(("perl-file-slurp-tiny" ,perl-file-slurp-tiny)
417 ("perl-xml-libxml" ,perl-xml-libxml)))
418 (home-page "http://search.cpan.org/dist/XML-LibXML-Simple")
419 (synopsis "XML::LibXML based XML::Simple clone")
421 "This package provides the same API as @code{XML::Simple} but is based on
422 @code{XML::LibXML}.")
423 (license license:perl-license)))
425 (define-public perl-xml-libxslt
427 (name "perl-xml-libxslt")
432 (uri (string-append "mirror://cpan/authors/id/S/SH/SHLOMIF/"
433 "XML-LibXSLT-" version ".tar.gz"))
436 "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia"))))
437 (build-system perl-build-system)
439 `(("libxslt" ,libxslt)))
441 `(("perl-xml-libxml" ,perl-xml-libxml)))
442 (home-page "http://search.cpan.org/dist/XML-LibXSLT")
443 (synopsis "Perl bindings to GNOME libxslt library")
444 (description "This Perl module is an interface to the GNOME project's
446 (license license:perl-license)))
448 (define-public perl-xml-namespacesupport
450 (name "perl-xml-namespacesupport")
455 (uri (string-append "mirror://cpan/authors/id/P/PE/PERIGRIN/"
456 "XML-NamespaceSupport-" version ".tar.gz"))
459 "1vz5pbi4lm5fhq2slrs2hlp6bnk29863abgjlcx43l4dky2rbsa7"))))
460 (build-system perl-build-system)
461 (home-page "http://search.cpan.org/dist/XML-NamespaceSupport")
462 (synopsis "XML namespace support class")
463 (description "This module offers a simple to process namespaced XML
464 names (unames) from within any application that may need them. It also helps
465 maintain a prefix to namespace URI map, and provides a number of basic
467 (license license:perl-license)))
469 (define-public perl-xml-rss
471 (name "perl-xml-rss")
475 (uri (string-append "mirror://cpan/authors/id/S/SH/SHLOMIF/"
476 "XML-RSS-" version ".tar.gz"))
479 "0xw6aaqka3vqwbv152sbh6fbi8j306q1gvg7v83br8miif3mjcsb"))))
480 (build-system perl-build-system)
482 `(("perl-module-build" ,perl-module-build)
483 ("perl-test-manifest" ,perl-test-manifest)
484 ("perl-test-differences" ,perl-test-differences)
485 ("perl-test-pod" ,perl-test-pod)
486 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
487 ;; XXX: The test which uses this modules does not run, even when it is included
488 ;; it is ignored. ("perl-test-trailingspace" ,perl-test-trailingspace)
490 `(("perl-datetime" ,perl-datetime)
491 ("perl-datetime-format-mail" ,perl-datetime-format-mail)
492 ("perl-datetime-format-w3cdtf" ,perl-datetime-format-w3cdtf)
493 ("perl-html-parser" ,perl-html-parser)
494 ("perl-xml-parser" ,perl-xml-parser)))
495 (home-page "http://search.cpan.org/dist/XML-RSS")
496 (synopsis "Creates and updates RSS files")
498 "This module provides a basic framework for creating and maintaining
499 RDF Site Summary (RSS) files. This distribution also contains many examples
500 that allow you to generate HTML from an RSS, convert between 0.9, 0.91, and
501 1.0 version, and more.")
502 (license license:perl-license)))
504 (define-public perl-xml-sax
506 (name "perl-xml-sax")
511 (uri (string-append "mirror://cpan/authors/id/G/GR/GRANTM/"
512 "XML-SAX-" version ".tar.gz"))
515 "1qra9k3wszjxvsgbragl55z3qba4nri0ipmjaxfib4l6xxj6bsj5"))))
516 (build-system perl-build-system)
518 `(("perl-xml-namespacesupport" ,perl-xml-namespacesupport)
519 ("perl-xml-sax-base" ,perl-xml-sax-base)))
521 `(#:phases (modify-phases %standard-phases
523 'install 'augment-path
524 ;; The install target tries to load the newly-installed
525 ;; XML::SAX module, but can't find it, so we need to tell
526 ;; perl where to look.
527 (lambda* (#:key outputs #:allow-other-keys)
529 (string-append (getenv "PERL5LIB") ":"
530 (assoc-ref outputs "out")
531 "/lib/perl5/site_perl")))))))
532 (home-page "http://search.cpan.org/dist/XML-SAX")
533 (synopsis "Perl API for XML")
534 (description "XML::SAX consists of several framework classes for using and
535 building Perl SAX2 XML parsers, filters, and drivers.")
536 (license license:perl-license)))
538 (define-public perl-xml-sax-base
540 (name "perl-xml-sax-base")
545 (uri (string-append "mirror://cpan/authors/id/G/GR/GRANTM/"
546 "XML-SAX-Base-" version ".tar.gz"))
549 "1l1ai9g1z11ja7mvnfl5mj346r13jyckbg9qlw6c2izglidkbjv6"))))
550 (build-system perl-build-system)
551 (home-page "http://search.cpan.org/dist/XML-SAX-Base")
552 (synopsis "Base class for SAX Drivers and Filters")
553 (description "This module has a very simple task - to be a base class for
554 PerlSAX drivers and filters. It's default behaviour is to pass the input
555 directly to the output unchanged. It can be useful to use this module as a
556 base class so you don't have to, for example, implement the characters()
558 (license license:perl-license)))
560 (define-public perl-xml-simple
562 (name "perl-xml-simple")
567 "mirror://cpan/authors/id/G/GR/GRANTM/XML-Simple-"
571 "0jgbk30jizafpl7078jhw1di1yh08gf8d85dsvjllr595vr0widr"))))
572 (build-system perl-build-system)
574 `(("perl-xml-parser" ,perl-xml-parser)
575 ("perl-xml-sax" ,perl-xml-sax)))
576 (license license:perl-license)
577 (synopsis "Perl module for easy reading/writing of XML files")
579 "The XML::Simple module provides a simple API layer on top of an
580 underlying XML parsing module (either XML::Parser or one of the SAX2
582 (home-page "http://search.cpan.org/dist/XML-Simple")))
584 (define-public perl-xml-regexp
586 (name "perl-xml-regexp")
591 "mirror://cpan/authors/id/T/TJ/TJMATHER/XML-RegExp-"
595 "0m7wj00a2kik7wj0azhs1zagwazqh3hlz4255n75q21nc04r06fz"))))
596 (build-system perl-build-system)
598 `(("perl-xml-parser" ,perl-xml-parser)))
599 (license license:perl-license)
600 (synopsis "Perl regular expressions for XML tokens")
602 "XML::RegExp contains regular expressions for the following XML tokens:
603 BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar,
604 EntityRef, CharRef, Reference, Name, NmToken, and AttValue.")
605 (home-page "http://search.cpan.org/~tjmather/XML-RegExp/lib/XML/RegExp.pm")))
607 (define-public perl-xml-dom
609 (name "perl-xml-dom")
614 "mirror://cpan/authors/id/T/TJ/TJMATHER/XML-DOM-"
618 "0phpkc4li43m2g44hdcvyxzy9pymqwlqhh5hwp2xc0cv8l5lp8lb"))))
619 (build-system perl-build-system)
621 `(("perl-libwww" ,perl-libwww)
622 ("perl-libxml" ,perl-libxml)
623 ("perl-xml-parser" ,perl-xml-parser)
624 ("perl-xml-regexp" ,perl-xml-regexp)))
625 (license license:perl-license)
627 "Perl module for building DOM Level 1 compliant document structures")
629 "This module extends the XML::Parser module by Clark Cooper. The
630 XML::Parser module is built on top of XML::Parser::Expat, which is a lower
631 level interface to James Clark's expat library. XML::DOM::Parser is derived
632 from XML::Parser. It parses XML strings or files and builds a data structure
633 that conforms to the API of the Document Object Model.")
634 (home-page "http://search.cpan.org/~tjmather/XML-DOM-1.44/lib/XML/DOM.pm")))
636 (define-public perl-xml-compile-tester
638 (name "perl-xml-compile-tester")
642 (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/"
643 "XML-Compile-Tester-" version ".tar.gz"))
646 "1bcl8x8cyacqv9yjp97aq9qq85sy8wv78kd8c16yd9yw3by4cpp1"))))
647 (build-system perl-build-system)
649 `(("perl-log-report" ,perl-log-report)
650 ("perl-test-deep" ,perl-test-deep)))
651 (home-page "http://search.cpan.org/dist/XML-Compile-Tester")
652 (synopsis "XML::Compile related regression testing")
654 "The @code{XML::Compile} module suite has extensive regression testing.
655 This module provide functions which simplify writing tests for
656 @code{XML::Compile} related distributions.")
657 (license license:perl-license)))
659 (define-public perl-xml-compile
661 (name "perl-xml-compile")
665 (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/"
666 "XML-Compile-" version ".tar.gz"))
669 "1hp41960bpqxvv1samv9hc0ghhmvs3i16r4rfl9yp54lp6jhsr2c"))))
670 (build-system perl-build-system)
672 `(("perl-log-report" ,perl-log-report)
673 ("perl-xml-compile-tester" ,perl-xml-compile-tester)
674 ("perl-xml-libxml" ,perl-xml-libxml)
675 ("perl-test-deep" ,perl-test-deep)))
676 (home-page "http://search.cpan.org/dist/XML-Compile")
677 (synopsis "Compilation-based XML processing")
679 "@code{XML::Compile} can be used to translate a Perl data-structure into
680 XML or XML into a Perl data-structure, both directions under rigid control by
682 (license license:perl-license)))
684 (define-public perl-xml-compile-cache
686 (name "perl-xml-compile-cache")
690 (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/"
691 "XML-Compile-Cache-" version ".tar.gz"))
694 "181qf1s7ymgi7saph3cf9p6dbxkxyh1ja23na4dchhi8v5mi66sr"))))
695 (build-system perl-build-system)
697 `(("perl-log-report" ,perl-log-report)
698 ("perl-xml-compile" ,perl-xml-compile)
699 ("perl-xml-compile-tester" ,perl-xml-compile-tester)
700 ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)))
701 (home-page "http://search.cpan.org/dist/XML-Compile-Cache")
702 (synopsis "Cache compiled XML translators")
704 "This package provides methods to cache compiled XML translators.")
705 (license license:perl-license)))
707 (define-public perl-xml-compile-soap
709 (name "perl-xml-compile-soap")
713 (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/"
714 "XML-Compile-SOAP-" version ".tar.gz"))
717 "0rxidh7kjyhnw2y789bqbwccnp8n0m3xskn524y9c752s64qpjcz"))))
718 (build-system perl-build-system)
720 `(("perl-file-slurp-tiny" ,perl-file-slurp-tiny)
721 ("perl-libwww" ,perl-libwww)
722 ("perl-log-report" ,perl-log-report)
723 ("perl-xml-compile" ,perl-xml-compile)
724 ("perl-xml-compile-cache" ,perl-xml-compile-cache)
725 ("perl-xml-compile-tester" ,perl-xml-compile-tester)))
726 (home-page "http://search.cpan.org/dist/XML-Compile-SOAP")
727 (synopsis "Base-class for SOAP implementations")
729 "This module provides a class to handle the SOAP protocol. The first
730 implementation is @url{SOAP1.1,
731 http://www.w3.org/TR/2000/NOTE-SOAP-20000508/}, which is still most often
733 (license license:perl-license)))
735 (define-public perl-xml-compile-wsdl11
737 (name "perl-xml-compile-wsdl11")
741 (uri (string-append "mirror://cpan/authors/id/M/MA/MARKOV/"
742 "XML-Compile-WSDL11-" version ".tar.gz"))
745 "0vbq05cpynm3jj81fw1k4nsb3wv4zngi6blvi1jhdarmh2rfg1x2"))))
746 (build-system perl-build-system)
748 `(("perl-log-report" ,perl-log-report)
749 ("perl-xml-compile" ,perl-xml-compile)
750 ("perl-xml-compile-cache" ,perl-xml-compile-cache)
751 ("perl-xml-compile-soap" ,perl-xml-compile-soap)))
752 (home-page "http://search.cpan.org/dist/XML-Compile-WSDL11")
753 (synopsis "Create SOAP messages defined by WSDL 1.1")
755 "This module understands WSDL version 1.1. A WSDL file defines a set of
756 messages to be send and received over SOAP connections. This involves
757 encoding of the message to be send into XML, sending the message to the
758 server, collect the answer, and finally decoding the XML to Perl.")
759 (license license:perl-license)))
761 (define-public perl-xml-feed
763 (name "perl-xml-feed")
767 (uri (string-append "mirror://cpan/authors/id/D/DA/DAVECROSS/"
768 "XML-Feed-" version ".tar.gz"))
771 "07b165g6wk8kqwpl49r3n0kag6p2nrkyp3ch0h8qyxb6nrnkkq7c"))))
772 (build-system perl-build-system)
774 `(#:tests? #f)) ; Tests require internet connection
776 `(("perl-module-build" ,perl-module-build)
777 ("perl-uri" ,perl-uri)
778 ("perl-class-data-inheritable" ,perl-class-data-inheritable)))
780 `(("perl-class-errorhandler" ,perl-class-errorhandler)
781 ("perl-datetime" ,perl-datetime)
782 ("perl-datetime-format-mail" ,perl-datetime-format-mail)
783 ("perl-datetime-format-w3cdtf" ,perl-datetime-format-w3cdtf)
784 ("perl-feed-find" ,perl-feed-find)
785 ("perl-html-parser" ,perl-html-parser)
786 ("perl-libwww-perl" ,perl-libwww)
787 ("perl-module-pluggable" ,perl-module-pluggable)
788 ("perl-uri-fetch" ,perl-uri-fetch)
789 ("perl-xml-atom" ,perl-xml-atom)
790 ("perl-xml-libxml" ,perl-xml-libxml)
791 ("perl-xml-rss" ,perl-xml-rss)))
792 (home-page "http://search.cpan.org/dist/XML-Feed")
793 (synopsis "XML Syndication Feed Support")
794 (description "@code{XML::Feed} is a syndication feed parser for both RSS and
795 Atom feeds. It also implements feed auto-discovery for finding feeds, given a URI.
796 @code{XML::Feed} supports the following syndication feed formats:
797 RSS 0.91, RSS 1.0, RSS 2.0, Atom")
798 (license license:perl-license)))
800 (define-public perl-xml-xpath
802 (name "perl-xml-xpath")
806 (uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/"
807 "XML-XPath-" version ".tar.gz"))
810 "07pa0bl42jka8mj7jshjynx8vpfh8b4cdyiv4zlkqvkqz98nzxib"))))
811 (build-system perl-build-system)
813 `(("perl-path-tiny" ,perl-path-tiny)))
815 `(("perl-xml-parser" ,perl-xml-parser)))
816 (home-page "http://search.cpan.org/dist/XML-XPath")
817 (synopsis "Parse and evaluate XPath statements")
819 "This module aims to comply exactly to the @url{XPath specification,
820 https://www.w3.org/TR/xpath} and yet allow extensions to be added in
821 the form of functions.")
822 (license license:perl-license)))
824 (define-public pugixml
831 (uri (string-append "https://github.com/zeux/pugixml/releases/download/v"
832 version "/pugixml-" version ".tar.gz"))
835 "0fcgggry5x5bn0zhb09ij9hb0p45nb0sv0d9fw3cm1cf62hp9n80"))))
836 (build-system cmake-build-system)
838 `(#:configure-flags '("-DCMAKE_CXX_FLAGS=-shared -fPIC"
839 "-DCMAKE_C_FLAGS=-shared -fPIC")
840 #:tests? #f)) ; no tests
841 (home-page "http://pugixml.org")
842 (synopsis "Light-weight, simple and fast XML parser for C++ with XPath support")
844 "pugixml is a C++ XML processing library, which consists of a DOM-like
845 interface with rich traversal/modification capabilities, a fast XML parser
846 which constructs the DOM tree from an XML file/buffer, and an XPath 1.0
847 implementation for complex data-driven tree queries. Full Unicode support is
848 also available, with Unicode interface variants and conversions between
849 different Unicode encodings which happen automatically during
851 (license license:expat)))
853 (define-public python-pyxb
859 (uri (pypi-uri "PyXB" version))
862 "1d17pyixbfvjyi2lb0cfp0ch8wwdf44mmg3r5pwqhyyqs66z601a"))))
863 (build-system python-build-system)
864 (home-page "http://pyxb.sourceforge.net/")
865 (synopsis "Python XML Schema Bindings")
867 "PyXB (\"pixbee\") is a pure Python package that generates Python source
868 code for classes that correspond to data structures defined by XMLSchema.")
869 (license (list license:asl2.0 ; Most files.
870 license:expat ; pyxb/utils/six.py
871 license:gpl2 ; bundled jquery in doc is dual MIT/GPL2
872 license:psfl)))) ; pyxb/utils/activestate.py
874 (define-public python2-pyxb
875 (package-with-python2 python-pyxb))
884 ;; The old source on fedorahosted.org is offline permanently:
885 ;; <https://bugs.gnu.org/25989>
886 (uri (string-append "mirror://debian/pool/main/x/xmlto/"
887 "xmlto_" version ".orig.tar.bz2"))
888 (file-name (string-append name "-" version ".tar.bz2"))
891 "0xhj8b2pwp4vhl9y16v3dpxpsakkflfamr191mprzsspg4xdyc0i"))))
892 (build-system gnu-build-system)
894 ;; Make sure the reference to util-linux's 'getopt' is kept in 'xmlto'.
895 '(#:configure-flags (list (string-append "GETOPT="
896 (assoc-ref %build-inputs
900 `(("util-linux" ,util-linux) ; for 'getopt'
901 ("libxml2" ,libxml2) ; for 'xmllint'
902 ("libxslt" ,libxslt))) ; for 'xsltproc'
903 (home-page "http://cyberelk.net/tim/software/xmlto/")
904 (synopsis "Front-end to an XSL toolchain")
906 "Xmlto is a front-end to an XSL toolchain. It chooses an appropriate
907 stylesheet for the conversion you want and applies it using an external
908 XSL-T processor. It also performs any necessary post-processing.")
909 (license license:gpl2+)))
911 (define-public xmlsec
917 (uri (string-append "https://www.aleksey.com/xmlsec/download/"
918 name "1-" version ".tar.gz"))
921 "1lpwj8dxwhha54sby0v5axjk79h56jnhjjiwiasbbk15vwzahz4n"))))
922 (build-system gnu-build-system)
923 (propagated-inputs ; according to xmlsec1.pc
924 `(("libxml2" ,libxml2)
925 ("libxslt" ,libxslt)))
928 ("libgcrypt" ,libgcrypt)
929 ("libltdl" ,libltdl)))
931 `(("pkg-config" ,pkg-config)))
932 (home-page "https://www.aleksey.com/xmlsec/")
933 (synopsis "XML Security Library")
935 "The XML Security Library is a C library based on Libxml2. It
936 supports XML security standards such as XML Signature, XML Encryption,
937 Canonical XML (part of Libxml2) and Exclusive Canonical XML (part of
939 (license (license:x11-style "file://COPYING"
940 "See 'COPYING' in the distribution."))))
942 (define-public xmlsec-nss
948 ("libltdl" ,libltdl)))
949 (synopsis "XML Security Library (using NSS instead of GnuTLS)")))
951 (define-public minixml
956 (method url-fetch/tarbomb)
957 (uri (string-append "https://github.com/michaelrsweet/mxml/"
958 "releases/download/v" version
959 "/mxml-" version ".tar.gz"))
962 "13xsw8vvkxd10vca42ccdyl9rs64lcvhbfz57aknpl3xcfn8mxma"))))
963 (build-system gnu-build-system)
966 (modify-phases %standard-phases
967 (add-after 'unpack 'fix-permissions
968 ;; FIXME: url-fetch/tarbomb resets all permissions to 555/444.
973 (find-files "doc" "\\."))
975 #:tests? #f)) ; tests are run during build
976 (home-page "https://michaelrsweet.github.io/mxml")
977 (synopsis "Small XML parsing library")
979 "Mini-XML is a small C library to read and write XML files and strings in
980 UTF-8 and UTF-16 encoding.")
981 ;; LGPL 2.0+ with additional exceptions for static linking
982 (license license:lgpl2.0+)))
984 ;; TinyXML is an unmaintained piece of software, so the patches and build
985 ;; system massaging have no upstream potential.
986 (define-public tinyxml
992 (uri (string-append "mirror://sourceforge/tinyxml/tinyxml/"
994 (string-join (string-split version #\.) "_")
996 (file-name (string-append name "-" version ".tar.gz"))
999 "14smciid19lvkxqznfig77jxn5s4iq3jpb47vh5a6zcaqp7gvg8m"))
1000 (patches (search-patches "tinyxml-use-stl.patch"))))
1001 (build-system gnu-build-system)
1002 ;; This library is missing *a lot* of the steps to make it usable, so we
1003 ;; have to add them here, like every other distro must do.
1006 (modify-phases %standard-phases
1008 (add-after 'build 'build-shared-library
1010 (invoke "g++" "-Wall" "-O2" "-shared" "-fpic"
1011 "tinyxml.cpp" "tinyxmlerror.cpp"
1012 "tinyxmlparser.cpp" "tinystr.cpp"
1013 "-o" "libtinyxml.so")))
1015 (lambda _ (invoke "./xmltest")))
1017 (lambda* (#:key outputs #:allow-other-keys)
1018 (let* ((out (assoc-ref outputs "out"))
1019 (include (string-append out "/include"))
1020 (lib (string-append out "/lib"))
1021 (pkgconfig (string-append out "/lib/pkgconfig"))
1022 (doc (string-append out "/share/doc")))
1023 ;; Install libs and headers.
1024 (install-file "libtinyxml.so" lib)
1025 (install-file "tinystr.h" include)
1026 (install-file "tinyxml.h" include)
1027 ;; Generate and install pkg-config file.
1029 ;; Software such as Kodi expect this file to be present, but
1030 ;; it's not provided in the source code.
1031 (call-with-output-file (string-append pkgconfig "/tinyxml.pc")
1033 (format port "prefix=~a
1034 exec_prefix=${prefix}
1035 libdir=${exec_prefix}/lib
1036 includedir=${prefix}/include
1039 Description: A simple, small, C++ XML parser
1041 Libs: -L${libdir} -ltinyxml
1042 Cflags: -I${includedir}
1047 (copy-recursively "docs" (string-append doc "tinyxml"))
1049 (synopsis "Small XML parser for C++")
1050 (description "TinyXML is a small and simple XML parsing library for the
1051 C++ programming language.")
1052 (home-page "http://www.grinninglizard.com/tinyxml/index.html")
1053 (license license:zlib)))
1055 (define-public tinyxml2
1062 (uri (string-append "https://github.com/leethomason/tinyxml2/archive/"
1064 (file-name (string-append name "-" version ".tar.gz"))
1067 "083z4r4khcndxi9k840lcr48sqxvar4gpsnf749xfdn1bkr8xcql"))))
1068 (build-system cmake-build-system)
1070 `(#:tests? #f)) ; no tests
1071 (synopsis "Small XML parser for C++")
1072 (description "TinyXML2 is a small and simple XML parsing library for the
1073 C++ programming language.")
1074 (home-page "http://www.grinninglizard.com/tinyxml2/")
1075 (license license:zlib)))
1077 (define-public xmlstarlet
1084 (uri (string-append "mirror://sourceforge/xmlstar/xmlstarlet/"
1085 version "/xmlstarlet-" version ".tar.gz"))
1088 "1jp737nvfcf6wyb54fla868yrr39kcbijijmjpyk4lrpyg23in0m"))))
1089 (build-system gnu-build-system)
1092 (modify-phases %standard-phases
1093 (add-before 'check 'drop-failing-tests
1095 ;; FIXME: Why are these tests failing.
1096 (substitute* "Makefile"
1097 (("^examples/schema1\\\\") "\\")
1098 (("^examples/valid1\\\\") "\\"))
1101 `(("libxslt" ,libxslt)
1102 ("libxml2" ,libxml2)))
1103 (home-page "http://xmlstar.sourceforge.net/")
1104 (synopsis "Command line XML toolkit")
1105 (description "XMLStarlet is a set of command line utilities which can be
1106 used to transform, query, validate, and edit XML documents. XPath is used to
1107 match and extract data, and elements can be added, deleted or modified using
1109 (license license:x11)))
1111 (define-public html-xml-utils
1113 (name "html-xml-utils")
1119 "https://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-"
1123 "0l97ps089byy62838wf2jwvvc465iw29z9r5kwmwcq7f3bn11y3m"))))
1124 (build-system gnu-build-system)
1125 (home-page "https://www.w3.org/Tools/HTML-XML-utils/")
1126 (synopsis "Command line utilities to manipulate HTML and XML files")
1127 (description "HTML-XML-utils provides a number of simple utilities for
1128 manipulating and converting HTML and XML files in various ways. The suite
1129 consists of the following tools:
1132 @item @command{asc2xml} convert from @code{UTF-8} to @code{&#nnn;} entities
1133 @item @command{xml2asc} convert from @code{&#nnn;} entities to @code{UTF-8}
1134 @item @command{hxaddid} add IDs to selected elements
1135 @item @command{hxcite} replace bibliographic references by hyperlinks
1136 @item @command{hxcite} mkbib - expand references and create bibliography
1137 @item @command{hxclean} apply heuristics to correct an HTML file
1138 @item @command{hxcopy} copy an HTML file while preserving relative links
1139 @item @command{hxcount} count elements and attributes in HTML or XML files
1140 @item @command{hxextract} extract selected elements
1141 @item @command{hxincl} expand included HTML or XML files
1142 @item @command{hxindex} create an alphabetically sorted index
1143 @item @command{hxmkbib} create bibliography from a template
1144 @item @command{hxmultitoc} create a table of contents for a set of HTML files
1145 @item @command{hxname2id} move some @code{ID=} or @code{NAME=} from A
1146 elements to their parents
1147 @item @command{hxnormalize} pretty-print an HTML file
1148 @item @command{hxnsxml} convert output of hxxmlns back to normal XML
1149 @item @command{hxnum} number section headings in an HTML file
1150 @item @command{hxpipe} convert XML to a format easier to parse with Perl or AWK
1151 @item @command{hxprintlinks} number links and add table of URLs at end of an HTML file
1152 @item @command{hxprune} remove marked elements from an HTML file
1153 @item @command{hxref} generate cross-references
1154 @item @command{hxselect} extract elements that match a (CSS) selector
1155 @item @command{hxtoc} insert a table of contents in an HTML file
1156 @item @command{hxuncdata} replace CDATA sections by character entities
1157 @item @command{hxunent} replace HTML predefined character entities to @code{UTF-8}
1158 @item @command{hxunpipe} convert output of pipe back to XML format
1159 @item @command{hxunxmlns} replace \"global names\" by XML Namespace prefixes
1160 @item @command{hxwls} list links in an HTML file
1161 @item @command{hxxmlns} replace XML Namespace prefixes by \"global names\"
1164 (license license:expat)))
1166 (define-public xlsx2csv
1173 "https://github.com/dilshod/"
1174 name "/archive/release/" version ".tar.gz"))
1175 (file-name (string-append name "-" version ".tar.gz"))
1178 "1gpn6kaa7l1ai8c9zx2j3acf04bvxq79pni8jjfjrk01smjbyyql"))))
1179 (build-system python-build-system)
1181 `(#:python ,python-2 ; Use python-2 for the test script.
1183 (modify-phases %standard-phases
1186 (substitute* "test/run"
1187 ;; Run tests with `python' only
1188 (("^(PYTHON_VERSIONS = ).*" all m) (string-append m "['']")))
1189 (zero? (system* "test/run")))))))
1190 (home-page "https://github.com/dilshod/xlsx2csv")
1191 (synopsis "XLSX to CSV converter")
1193 "Xlsx2csv is a program to convert Microsoft Excel 2007 XML (XLSX and
1194 XLSM) format spreadsheets into plaintext @dfn{comma separated values} (CSV)
1195 files. It is designed to be fast and to handle large input files.")
1196 (license license:gpl2+)))
1198 (define-public python-defusedxml
1200 (name "python-defusedxml")
1205 (uri (pypi-uri "defusedxml" version))
1208 "1x54n0h8hl92vvwyymx883fbqpqjwn2mc8fb383bcg3z9zwz5mr4"))))
1209 (build-system python-build-system)
1210 (home-page "https://bitbucket.org/tiran/defusedxml")
1211 (synopsis "XML bomb protection for Python stdlib modules")
1213 "Defusedxml provides XML bomb protection for Python stdlib modules.")
1214 (license license:psfl)))
1216 (define-public python2-defusedxml
1217 (package-with-python2 python-defusedxml))
1219 (define-public libxls
1225 (uri (string-append "https://sourceforge.net/projects/"
1226 name "/files/" name "-"
1230 "1g8ds7wbhsa4hdcn77xc2c0l3vvz5bx2hx9ng9c9n7aii92ymfnk"))))
1231 (build-system gnu-build-system)
1234 (modify-phases %standard-phases
1235 ;; Bootstrapping is required in order to fix the test driver script.
1236 (add-after 'unpack 'bootstrap
1238 (zero? (system* "bash" "bootstrap")))))))
1241 ("autoconf" ,autoconf)
1242 ("automake" ,automake)
1243 ("libtool" ,libtool)))
1244 (home-page "http://libxls.sourceforge.net/")
1245 (synopsis "Read Excel files")
1247 "libxls is a C library which can read Excel (xls) files since Excel 97 (the BIFF8 format).
1248 libxls cannot write Excel files.")
1249 (license license:bsd-2)))
1251 (define-public freexl
1257 (uri (string-append "http://www.gaia-gis.it/gaia-sins/"
1258 name "-" version ".tar.gz"))
1261 "03bmwq6hngmzwpqpb7c2amqlspz4q69iv96nlf0f5c0qs98b3j9x"))))
1262 (build-system gnu-build-system)
1263 (home-page "https://www.gaia-gis.it/fossil/freexl/index")
1264 (synopsis "Read Excel files")
1266 "FreeXL is a C library to extract valid data from within an Excel (.xls)
1268 ;; Any of these licenses may be picked.
1269 (license (list license:gpl2+
1273 (define-public xerces-c
1279 (uri (string-append "mirror://apache/xerces/c/3/sources/"
1280 "xerces-c-" version ".tar.xz"))
1283 "0hb29c0smqlpxj0zdm09s983z5jx37szlliccnvgh0qq91wwqwwr"))))
1284 (build-system gnu-build-system)
1286 (let ((system (or (%current-target-system)
1287 (%current-system))))
1288 (if (string-prefix? "x86_64" system)
1290 '(#:configure-flags '("--disable-sse2")))))
1293 (home-page "http://xerces.apache.org/xerces-c/")
1294 (synopsis "Validating XML parser library for C++")
1295 (description "Xerces-C++ is a validating XML parser written in a portable
1296 subset of C++. Xerces-C++ makes it easy to give your application the ability
1297 to read and write XML data. A shared library is provided for parsing,
1298 generating, manipulating, and validating XML documents using the DOM, SAX, and
1300 (license license:asl2.0)))
1302 (define-public java-simple-xml
1304 (name "java-simple-xml")
1308 (uri (string-append "mirror://sourceforge/simple/simple-xml-"
1312 "0w19k1awslmihpwsxwjbg89hv0vjhk4k3i0vrfchy3mqknd988y5"))))
1313 (build-system ant-build-system)
1315 `(#:build-target "build"
1316 #:test-target "test"
1318 (modify-phases %standard-phases
1319 (replace 'install (install-jars "jar")))))
1321 `(("unzip" ,unzip)))
1322 (home-page "http://simple.sourceforge.net/")
1323 (synopsis "XML serialization framework for Java")
1324 (description "Simple is a high performance XML serialization and
1325 configuration framework for Java. Its goal is to provide an XML framework
1326 that enables rapid development of XML configuration and communication systems.
1327 This framework aids the development of XML systems with minimal effort and
1328 reduced errors. It offers full object serialization and deserialization,
1329 maintaining each reference encountered.")
1330 (license license:asl2.0)))
1332 (define-public perl-xml-xpathengine
1334 (name "perl-xml-xpathengine")
1338 (uri (string-append "mirror://cpan/authors/id/M/MI/MIROD/"
1339 "XML-XPathEngine-" version ".tar.gz"))
1342 "0r72na14bmsxfd16s9nlza155amqww0k8wsa9x2a3sqbpp5ppznj"))))
1343 (build-system perl-build-system)
1344 (home-page "http://search.cpan.org/dist/XML-XPathEngine/")
1345 (synopsis "Re-usable XPath engine for DOM-like trees")
1347 "This module provides an XPath engine, that can be re-used by other
1348 modules/classes that implement trees.
1350 In order to use the XPath engine, nodes in the user module need to mimick DOM
1351 nodes. The degree of similitude between the user tree and a DOM dictates how
1352 much of the XPath features can be used. A module implementing all of the DOM
1353 should be able to use this module very easily (you might need to add the
1354 @code{cmp} method on nodes in order to get ordered result sets).")
1355 (license license:perl-license)))
1357 (define-public perl-tree-xpathengine
1359 (name "perl-tree-xpathengine")
1363 (uri (string-append "mirror://cpan/authors/id/M/MI/MIROD/"
1364 "Tree-XPathEngine-" version ".tar.gz"))
1367 "1vbbw8wxm79r3xbra8narw1dqvm34510q67wbmg2zmj6zd1k06r9"))))
1368 (build-system perl-build-system)
1369 (home-page "http://search.cpan.org/dist/Tree-XPathEngine/")
1370 (synopsis "Re-usable XPath engine")
1372 "This module provides an XPath engine, that can be re-used by other
1373 module/classes that implement trees. It is designed to be compatible with
1374 @code{Class::XPath}, ie it passes its tests if you replace @code{Class::XPath}
1375 by @code{Tree::XPathEngine}.")
1376 (license license:perl-license)))
1378 (define-public perl-xml-filter-buffertext
1380 (name "perl-xml-filter-buffertext")
1385 (uri (string-append "mirror://cpan/authors/id/R/RB/RBERJON/"
1386 "XML-Filter-BufferText-" version ".tar.gz"))
1389 "0p5785c1dsk6kdp505vapb5h54k8krrz8699hpgm9igf7dni5llg"))))
1390 (build-system perl-build-system)
1392 `(("perl-xml-sax-base" ,perl-xml-sax-base)))
1393 (home-page "http://search.cpan.org/dist/XML-Filter-BufferText/")
1394 (synopsis "Filter to put all characters() in one event")
1395 (description "This is a very simple filter. One common cause of
1396 grief (and programmer error) is that XML parsers aren't required to provide
1397 character events in one chunk. They can, but are not forced to, and most
1398 don't. This filter does the trivial but oft-repeated task of putting all
1399 characters into a single event.")
1400 (license license:perl-license)))
1402 (define-public perl-xml-sax-writer
1404 (name "perl-xml-sax-writer")
1409 "mirror://cpan/authors/id/P/PE/PERIGRIN/"
1410 "XML-SAX-Writer-" version ".tar.gz"))
1413 "1w1cd1ybxdvhmnxdlkywi3x5ka3g4md42kyynksjc09vyizd0q9x"))))
1414 (build-system perl-build-system)
1416 `(("perl-libxml" ,perl-libxml)
1417 ("perl-xml-filter-buffertext" ,perl-xml-filter-buffertext)
1418 ("perl-xml-namespacesupport" ,perl-xml-namespacesupport)
1419 ("perl-xml-sax-base" ,perl-xml-sax-base)))
1420 (home-page "http://search.cpan.org/dist/XML-SAX-Writer/")
1421 (synopsis "SAX2 XML Writer")
1423 "This is an XML writer that understands SAX2. It is based on
1424 @code{XML::Handler::YAWriter}.")
1425 (license license:perl-license)))
1427 (define-public perl-xml-handler-yawriter
1429 (name "perl-xml-handler-yawriter")
1434 (uri (string-append "mirror://cpan/authors/id/K/KR/KRAEHE/"
1435 "XML-Handler-YAWriter-" version ".tar.gz"))
1438 "11d45a1sz862va9rry3p2m77pwvq3kpsvgwhc5ramh9mbszbnk77"))))
1439 (build-system perl-build-system)
1441 `(("perl-libxml" ,perl-libxml)))
1442 (home-page "http://search.cpan.org/dist/XML-Handler-YAWriter/")
1443 (synopsis "Yet another Perl SAX XML Writer")
1444 (description "YAWriter implements Yet Another @code{XML::Handler::Writer}.
1445 It provides a flexible escaping technique and pretty printing.")
1446 (license license:perl-license)))
1448 (define-public perl-xml-twig
1450 (name "perl-xml-twig")
1454 (uri (string-append "mirror://cpan/authors/id/M/MI/MIROD/"
1455 "XML-Twig-" version ".tar.gz"))
1458 "1bc0hrz4jp6199hi29sdxmb9gyy45whla9hd19yqfasgq8k5ixzy"))))
1459 (build-system perl-build-system)
1461 `(("expat" ,expat)))
1463 `(("perl-html-tidy" ,perl-html-tidy)
1464 ("perl-html-tree" ,perl-html-tree)
1465 ("perl-io-captureoutput" ,perl-io-captureoutput)
1466 ("perl-io-string" ,perl-io-string)
1467 ("perl-io-stringy" ,perl-io-stringy)
1468 ("perl-libxml" ,perl-libxml)
1469 ("perl-xml-filter-buffertext" ,perl-xml-filter-buffertext)
1470 ("perl-xml-handler-yawriter" ,perl-xml-handler-yawriter)
1471 ("perl-xml-parser" ,perl-xml-parser)
1472 ("perl-xml-sax-writer" ,perl-xml-sax-writer)
1473 ("perl-xml-simple" ,perl-xml-simple)
1474 ("perl-xml-xpathengine" ,perl-xml-xpathengine)
1475 ("perl-test-pod" ,perl-test-pod)
1476 ("perl-tree-xpathengine" ,perl-tree-xpathengine)))
1477 (home-page "http://search.cpan.org/dist/XML-Twig/")
1478 (synopsis "Perl module for processing huge XML documents in tree mode")
1479 (description "@code{XML::Twig} is an XML transformation module. Its
1480 strong points: can be used to process huge documents while still being in tree
1481 mode; not bound by DOM or SAX, so it is very perlish and offers a very
1482 comprehensive set of methods; simple to use; DWIMs as much as possible.
1484 What it doesn't offer: full SAX support (it can export SAX, but only reads
1485 XML), full XPath support (unless you use @code{XML::Twig::XPath}), nor DOM
1487 (license license:perl-license)))
1489 ;; TODO: Debian builds several jars out of this: jaxp-1.4.jar,
1490 ;; xml-apis.jar and xml-apis-1.4.01.jar.
1491 (define-public java-jaxp
1498 (uri (string-append "mirror://apache/xerces/xml-commons/source/"
1499 "xml-commons-external-" version "-src.tar.gz"))
1501 (base32 "0rhq32a7dl9yik7zx9h0naz2iz068qgcdiayak91wp4wr26xhjyk"))))
1502 (build-system ant-build-system)
1504 `(#:jar-name "jaxp.jar"
1507 #:tests? #f)); no tests
1508 (home-page "http://xerces.apache.org/xml-commons/")
1509 (synopsis "Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)")
1510 (description "Jaxp from the Apache XML Commons project is used by
1511 the Xerces-J XML parser and Xalan-J XSLT processor and specifies these APIs:
1514 @item Document Object Model (DOM)
1515 @item Simple API for XML (SAX)
1516 @item Java APIs for XML Processing (JAXP)
1517 @item Transformation API for XML (TrAX)
1518 @item Document Object Model (DOM) Load and Save
1519 @item JSR 206 Java API for XML Processing
1521 (license (list license:asl2.0
1522 license:w3c ;; Files under org.w3c
1523 license:public-domain)))) ;; org.xml.sax
1525 (define-public java-apache-xml-commons-resolver
1527 (name "java-apache-xml-commons-resolver")
1532 (uri (string-append "mirror://apache/xerces/xml-commons/"
1533 "xml-commons-resolver-" version ".tar.gz"))
1535 (base32 "1zhy4anc3fg9f8y348bj88vmab15aavrg6nf419ifb25asyygnsm"))
1536 (modules '((guix build utils)))
1539 (for-each delete-file (find-files "." ".*\\.(jar|zip)"))
1541 (build-system ant-build-system)
1543 `(#:jar-name (string-append "xml-resolver.jar")
1544 #:tests? #f)); no tests
1546 `(("java-junit" ,java-junit)))
1547 (home-page "http://xerces.apache.org/xml-commons/")
1548 (synopsis "Catalog-based entity and URI resolution")
1549 (description "The resolver class implements the full semantics of OASIS Technical
1550 Resolution 9401:1997 (Amendment 2 to TR 9401) catalogs and the 06 Aug
1551 2001 Committee Specification of OASIS XML Catalogs.
1553 It also includes a framework of classes designed to read catalog files
1554 in a number of formats:
1557 @item The plain-text flavor described by TR9401.
1558 @item The XCatalog XML format defined by John Cowan
1559 @item The XML Catalog format defined by the OASIS Entity Resolution
1560 Technical Committee.
1562 (license license:asl2.0)))
1564 ;; Jaxen requires java-dom4j and java-xom that in turn require jaxen.
1565 ;; This package is a bootstrap version without dependencies on dom4j and xom.
1566 (define java-jaxen-bootstrap
1568 (name "java-jaxen-bootstrap")
1572 ;; No release on github
1573 (uri (string-append "https://repo1.maven.org/maven2/jaxen/jaxen/"
1574 version "/jaxen-" version "-sources.jar"))
1577 "18pa8mks3gfhazmkyil8wsp6j1g1x7rggqxfv4k2mnixkrj5x1kx"))))
1578 (build-system ant-build-system)
1580 `(#:jar-name "jaxen.jar"
1582 #:tests? #f; no tests
1584 (modify-phases %standard-phases
1585 (add-before 'build 'remove-dom4j
1587 (delete-file-recursively "src/org/jaxen/dom4j")
1588 (delete-file-recursively "src/org/jaxen/xom")
1591 `(("java-jdom" ,java-jdom)))
1592 (home-page "https://github.com/jaxen-xpath/jaxen")
1593 (synopsis "XPath library")
1594 (description "Jaxen is an XPath library written in Java. It is adaptable
1595 to many different object models, including DOM, XOM, dom4j, and JDOM. It is
1596 also possible to write adapters that treat non-XML trees such as compiled
1597 Java byte code or Java beans as XML, thus enabling you to query these trees
1599 (license license:bsd-3)))
1601 (define-public java-jaxen
1603 (inherit java-jaxen-bootstrap)
1606 `(("java-jdom" ,java-jdom)
1607 ("java-xom" ,java-xom)
1608 ("java-dom4j" ,java-dom4j)))))
1610 (define-public java-xom
1616 (uri (string-append "https://github.com/elharo/xom/archive/XOM_"
1620 "04m69db1irqja12a9rfxrac8cbn9psqa1k136wh4ls4pxfsdr5wg"))
1621 (modules '((guix build utils)))
1624 (for-each delete-file
1625 (find-files "." "\\.jar$"))
1627 (build-system ant-build-system)
1629 `(#:jar-name "xom.jar"
1631 #:tests? #f; no tests
1633 (modify-phases %standard-phases
1634 (add-before 'configure 'fix-tagsoup-dep
1636 ;; FIXME: Where is tagsoup source?
1637 (delete-file "src/nu/xom/tools/XHTMLJavaDoc.java")
1640 `(("java-jdom" ,java-jdom)
1641 ("java-junit" ,java-junit)
1642 ("java-classpathx-servletapi" ,java-classpathx-servletapi)
1643 ("java-jaxen-bootstrap" ,java-jaxen-bootstrap)
1644 ("java-xerces" ,java-xerces)))
1645 (home-page "https://xom.nu/")
1646 (synopsis "XML Object Model")
1647 (description "XOM is a new XML Object Model for processing XML with Java
1648 that strives for correctness and simplicity.")
1650 (license license:lgpl2.1)))
1652 (define-public java-xsdlib
1654 (name "java-xsdlib")
1658 (uri (string-append "http://central.maven.org/maven2/com/sun/msv/"
1659 "datatype/xsd/xsdlib/" version "/xsdlib-"
1660 version "-sources.jar"))
1663 "185i48p1xp09wbq03i9zgfl701qa262rq46yf4cajzmk3336kqim"))))
1664 (build-system ant-build-system)
1666 `(#:tests? #f; no tests
1667 #:jar-name "xsdlib.jar"
1670 `(("java-xerces" ,java-xerces)))
1671 (home-page "http://central.maven.org/maven2/com/sun/msv/datatype/xsd/xsdlib/")
1672 (synopsis "Sun Multi-Schema Validator")
1673 (description "Xsdlib contains an implementation of sun.com.msv, an XML
1675 (license license:bsd-2)))
1677 (define-public java-xpp3
1683 (uri (string-append "http://www.extreme.indiana.edu/dist/"
1684 "java-repository/xpp3/distributions/xpp3-"
1685 version "_src.tgz"))
1688 "1b99zrhyij5qwyhilyjdl1ykxvhk902vsvflh6gx4fir8hfvdl5p"))
1689 (modules '((guix build utils)))
1691 '(begin ;; Delete bundled jar archives.
1692 (for-each delete-file (find-files "." ".*\\.jar"))
1694 (build-system ant-build-system)
1696 `(#:tests? #f; no tests
1697 #:build-target "jar"
1699 (modify-phases %standard-phases
1700 (replace 'install (install-jars "build")))))
1701 (home-page "http://www.extreme.indiana.edu/xgws/xsoap/xpp/")
1702 (synopsis "Streaming pull XML parser")
1703 (description "Xml Pull Parser (in short XPP) is a streaming pull XML
1704 parser and should be used when there is a need to process quickly and
1705 efficiently all input elements (for example in SOAP processors). This
1706 package is a stable XmlPull parsing engine that is based on ideas from XPP
1707 and in particular XPP2 but completely revised and rewritten to take the best
1708 advantage of JIT JVMs.")
1709 (license (license:non-copyleft "file://LICENSE.txt"))))
1711 (define-public java-xmlpull2
1713 (name "java-xmlpull2")
1717 (uri (string-append "http://www.extreme.indiana.edu/xgws/xsoap/"
1718 "PullParser/PullParser" version ".tgz"))
1721 "1kw9nhyqb7bzhn2zjbwlpi5vp5rzj89amzi3hadw2acyh2dmd0md"))
1722 (modules '((guix build utils)))
1724 '(begin ;; Delete bundled jar archives.
1725 (for-each delete-file (find-files "." ".*\\.jar"))
1727 (build-system ant-build-system)
1729 `(#:tests? #f; no tests
1730 #:build-target "impl"
1732 (modify-phases %standard-phases
1733 (replace 'install (install-jars "build/lib")))))
1734 (home-page "http://www.extreme.indiana.edu/xgws/xsoap/xpp/")
1735 (synopsis "Streaming pull XML parser")
1736 (description "Xml Pull Parser (in short XPP) is a streaming pull XML
1737 parser and should be used when there is a need to process quickly and
1738 efficiently all input elements (for example in SOAP processors). This
1739 package is in maintenance mode.")
1740 (license (license:non-copyleft "file:///LICENSE.txt"))))
1742 (define-public java-dom4j
1748 (uri (string-append "https://github.com/dom4j/dom4j/archive/"
1749 "version-" version ".tar.gz"))
1750 (file-name (string-append name "-" version ".tar.gz"))
1753 "101drpnw6agmcvsi1jrfi0kn97r7liazrh5jbrip9vx26axn2fx9"))
1754 (modules '((guix build utils)))
1756 '(begin ;; Delete bundled jar archives.
1757 (for-each delete-file (find-files "." ".*\\.jar"))
1759 (build-system ant-build-system)
1761 `(#:jar-name "dom4j.jar"
1763 #:source-dir "src/main/java"
1764 ;; FIXME: Requires xalan, but xalan depends on java-cup which has a
1765 ;; dependency on itself through jflex.
1768 (modify-phases %standard-phases
1769 (add-before 'build 'copy-jaxen-sources
1770 ;; java-jaxen-bootstrap is not enough. These files have a circular
1771 ;; dependency and there is no subset of dom4j that would allow
1772 ;; breaking the circle.
1773 (lambda* (#:key inputs #:allow-other-keys)
1774 (mkdir-p "jaxen-sources")
1775 (with-directory-excursion "jaxen-sources"
1776 (system* "jar" "xf" (assoc-ref inputs "java-jaxen-sources")))
1777 (mkdir-p "src/main/java/org/jaxen/dom4j")
1778 (copy-file "jaxen-sources/org/jaxen/dom4j/DocumentNavigator.java"
1779 "src/main/java/org/jaxen/dom4j/DocumentNavigator.java")
1780 (copy-file "jaxen-sources/org/jaxen/dom4j/Dom4jXPath.java"
1781 "src/main/java/org/jaxen/dom4j/Dom4jXPath.java")
1783 (add-before 'build 'fix-old-xpp2
1785 ;; This package normally depends on xpp2 2.0, but version 2.1.10
1786 ;; is the only version whose source code is published.
1787 (substitute* "src/main/java/org/dom4j/xpp/ProxyXmlStartTag.java"
1788 (("public void resetStartTag")
1789 "public boolean removeAttributeByRawName(String name) {\n
1792 public boolean removeAttributeByName(String name, String name2) {\n
1794 }\n\npublic void resetStartTag")
1795 (("Atttribute") "Attribute"))
1798 `(("java-jaxen-bootstrap" ,java-jaxen-bootstrap)
1799 ("java-jaxen-sources" ,(package-source java-jaxen-bootstrap))
1800 ("java-xmlpull2" ,java-xmlpull2)
1801 ("java-xpp3" ,java-xpp3)
1802 ("java-xsdlib" ,java-xsdlib)))
1804 `(("java-testng" ,java-testng)
1805 ("java-xerces" ,java-xerces)))
1806 (home-page "https://dom4j.github.io/")
1807 (synopsis "Flexible XML framework for Java")
1808 (description "Dom4j is a flexible XML framework for Java. DOM4J works
1809 with DOM, SAX, XPath, and XSLT. It can parse large XML documents with very
1810 low memory footprint.")
1811 ;; some BSD-like 5-clause license
1812 (license (license:non-copyleft "file://LICENSE"))))
1814 (define-public java-kxml2
1820 (uri (string-append "https://github.com/stefanhaustein/kxml2/archive/v"
1822 (file-name (string-append name "-" version ".tar.gz"))
1825 "17kh04qf3vll1xx6sv06xlazw2hxa8qdmzyday9r6z2191jlj74w"))))
1826 (build-system ant-build-system)
1828 `(#:jar-name "kxml2.jar"
1829 #:source-dir "src/main/java"
1830 #:test-include (list "TestWb.java")
1831 ;; Test failure: it was expected to get an XML entity but got the
1832 ;; equivalent Unicode character instead.
1835 (modify-phases %standard-phases
1836 (add-before 'build 'copy-resources
1838 (copy-recursively "src/main/resources" "build/classes"))))))
1840 `(("java-xpp3" ,java-xpp3)))
1842 `(("java-junit" ,java-junit)))
1843 (home-page "http://kxml.org")
1844 (synopsis "XML pull parser")
1845 (description "kXML is a small XML pull parser, specially designed for
1846 constrained environments such as Applets, Personal Java or devices compliant
1847 with the Mobile Information Device Profile (MIDP).")
1848 (license license:expat)))
1850 (define-public java-stax
1856 (uri (string-append "https://repo1.maven.org/maven2/stax/stax/"
1857 version "/stax-" version "-sources.jar"))
1860 "04ba4qvbrps45j8bldbakxq31k7gjlsay9pppa9yn13fr00q586z"))))
1861 (build-system ant-build-system)
1863 `(#:jar-name "stax.jar"
1864 #:tests? #f; no tests
1866 (modify-phases %standard-phases
1867 (add-before 'configure 'fix-utf8
1869 ;; This file is ISO-8859-1 but java expects UTF-8.
1870 ;; Remove special characters in comments.
1871 (with-fluids ((%default-port-encoding "ISO-8859-1"))
1872 (substitute* "src/com/wutka/dtd/Scanner.java"
1875 (home-page "https://repo1.maven.org/maven2/stax/stax/")
1876 (synopsis "Streaming API for XML")
1877 (description "This package provides the reference implementation of the
1878 @dfn{Streaming API for XML} (StAX). It is used for streaming XML data to
1879 and from a Java application. It provides a standard pull parser interface.")
1880 (license license:asl2.0)))
1882 (define-public java-jettison
1884 (name "java-jettison")
1888 (uri (string-append "https://github.com/codehaus/jettison/archive/"
1889 "jettison-" version ".tar.gz"))
1892 "0rdhfyxywvga5wiwasc04iqnxyixn3rd8wj01c9ymhvwc3h6dpqg"))))
1893 (build-system ant-build-system)
1895 `(#:jar-name "jettison.jar"
1896 #:source-dir "src/main/java"
1897 #:test-exclude (list "**/Abstract*.java"
1900 "**/BadgerFishDOMTest.java"
1901 "**/MappedDOMTest.java")))
1903 `(("java-junit" ,java-junit)))
1904 (home-page "https://github.com/codehaus/jettison")
1905 (synopsis "StAX implementation for JSON")
1906 (description "Jettison is a Java library for converting XML to JSON and
1907 vice-versa with the help of the @dfn{Streaming API for XML} (StAX). It
1908 implements @code{XMLStreamWriter} and @code{XMLStreamReader} and supports
1909 @code{Mapped} and @code{BadgerFish} conventions.")
1910 (license license:asl2.0)))
1912 (define-public java-jdom2
1918 (uri (string-append "https://github.com/hunterhacker/jdom/archive/JDOM-"
1922 "0p8n7inqq2a25wk9ljinl3ixlx1x2la9qaman8ngd75xxjb02yc1"))))
1923 (build-system ant-build-system)
1925 `(#:build-target "package"
1926 #:tests? #f; tests are run as part of the build process
1928 (modify-phases %standard-phases
1930 (install-jars "build")))))
1931 (home-page "http://jdom.org/")
1932 (synopsis "Access, manipulate, and output XML data")
1933 (description "Jdom is a Java-based solution for accessing, manipulating, and
1934 outputting XML data from Java code.")
1935 (license license:bsd-4)))
1937 (define-public java-xstream
1939 (name "java-xstream")
1944 "https://github.com/x-stream/xstream/archive/XSTREAM_"
1945 (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)
1947 (file-name (string-append name "-" version ".tar.gz"))
1950 "10zbkam05wirxipvgrjimdwsyqrwl4a0n7lhvxbsssqpv727469g"))))
1951 (build-system ant-build-system)
1953 `(#:jar-name "xstream.jar"
1954 ;; FIXME: Tests are not in a java subdirectory as assumed by ant-build-system
1957 #:source-dir "xstream/src/java"))
1959 `(("java-jdom" ,java-jdom)
1960 ("java-jdom2" ,java-jdom2)
1961 ("java-cglib" ,java-cglib)
1962 ("java-joda-time" ,java-joda-time)
1963 ("java-jettison" ,java-jettison)
1964 ("java-xom" ,java-xom)
1965 ("java-xpp3" ,java-xpp3)
1966 ("java-dom4j" ,java-dom4j)
1967 ("java-stax2-api" ,java-stax2-api)
1968 ("java-woodstox-core" ,java-woodstox-core)
1969 ("java-kxml2" ,java-kxml2)
1970 ("java-stax" ,java-stax)))
1971 (home-page "https://x-stream.github.io")
1972 (synopsis "XML serialization library")
1973 (description "XStream is a simple library to serialize Java objects to XML
1975 (license license:bsd-3)))
1977 (define-public ghc-hxt-charproperties
1979 (name "ghc-hxt-charproperties")
1984 (uri (string-append "https://hackage.haskell.org/package/"
1985 "hxt-charproperties/hxt-charproperties-"
1989 "1mml8wglvagqq891rchgli6r8rnkwrqhgsxfl6kb5403pzb18rp4"))))
1990 (build-system haskell-build-system)
1991 (home-page "https://github.com/UweSchmidt/hxt")
1992 (synopsis "Character properties and classes for XML and Unicode")
1994 "The modules provided by this package contain predicates for Unicode
1995 blocks and char properties and character predicates defined by XML. The
1996 supported Unicode version is 7.0.0")
1997 (license license:expat)))
1999 (define-public ghc-hxt-unicode
2001 (name "ghc-hxt-unicode")
2007 "https://hackage.haskell.org/package/hxt-unicode/hxt-unicode-"
2012 "0rj48cy8z4fl3zpg5bpa458kqr83adav6jnqv4i71dclpprj6n3v"))))
2013 (build-system haskell-build-system)
2015 `(("ghc-hxt-charproperties" ,ghc-hxt-charproperties)))
2017 "http://www.fh-wedel.de/~si/HXmlToolbox/index.html https://github.com/UweSchmidt/hxt")
2019 "Unicode en-/decoding functions for utf8, iso-latin-* and other encodings")
2021 "This package provides Unicode encoding and decoding functions for
2022 encodings used in the Haskell XML Toolbox. ISO Latin 1-16, utf8, utf16, ASCII
2023 are supported. Decoding is done with lazy functions, errors may be detected or
2025 (license license:expat)))
2027 (define-public ghc-hxt-regex-xmlschema
2029 (name "ghc-hxt-regex-xmlschema")
2034 (uri (string-append "https://hackage.haskell.org/package/"
2035 "hxt-regex-xmlschema/hxt-regex-xmlschema-"
2039 "1c4jr0439f5yc05h7iz53fa47g6l2wrvqp6gvwf01mlqajk3nx7l"))))
2040 (build-system haskell-build-system)
2042 `(("ghc-hxt-charproperties" ,ghc-hxt-charproperties)
2043 ("ghc-parsec" ,ghc-parsec)
2044 ("ghc-text" ,ghc-text)
2045 ("ghc-hunit" ,ghc-hunit)))
2046 (home-page "http://www.haskell.org/haskellwiki/Regular_expressions_for_XML_Schema")
2047 (synopsis "Regular expression library for W3C XML Schema regular expressions")
2049 "This library supports full W3C XML Schema regular expressions inclusive
2050 all Unicode character sets and blocks. It is implemented by the technique of
2051 derivations of regular expressions.")
2052 (license license:expat)))
2054 (define-public ghc-hxt
2057 (version "9.3.1.16")
2062 "https://hackage.haskell.org/package/hxt/hxt-"
2067 "1qq3ykgn355rx242xjcbqqksgvwr6k2fdj5phw4iv28qqxff6m8d"))))
2068 (build-system haskell-build-system)
2070 `(("ghc-parsec" ,ghc-parsec)
2071 ("ghc-mtl" ,ghc-mtl)
2072 ("ghc-hxt-charproperties" ,ghc-hxt-charproperties)
2073 ("ghc-hxt-unicode" ,ghc-hxt-unicode)
2074 ("ghc-hxt-regex-xmlschema" ,ghc-hxt-regex-xmlschema)
2075 ("ghc-network-uri" ,ghc-network-uri)))
2076 (home-page "https://github.com/UweSchmidt/hxt")
2077 (synopsis "Collection of tools for processing XML with Haskell")
2079 "The Haskell XML Toolbox bases on the ideas of HaXml and HXML, but
2080 introduces a more general approach for processing XML with Haskell.")
2081 (license license:expat)))