concrete-relaxng-parser
A parser driven by a standard RELAX NG schema with concrete syntax extensions.
This package exports a parser executable named @parse-concrete@. The executable takes two arguments, the target RELAX
NG schema filename and the input filename. The input must be well-formed XML. The output of the parser is either an
error or XML conforming to the schema.
If the input XML already conforms to the target schema, the parser acts as an ordinary RELAX NG validator. If not, it
attempts to insert the missing element tags and to parse the input text nodes into XML elements. The target schema can
be enriched by concrete syntax extensions, syntactically compatible with standard RELAX NG, to drive the parsing
process.
The included sample RELAX NG schema @xhtml-concrete.rng@ is an extension of, and must be used together with, James
Clark's modularized RELAX NG schema for XHTML, which can be downloaded from
<http://www.thaiopensource.com/relaxng/xhtml/>. Here is an example session:
> $ cat <<END >test.xhtml.short<?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml">
> Title
>
> A paragraph may contain more than one line.
> Use *four* (that was emphasized) hyphens to draw a horizontal line:
>
> ----
>
> Unnumbered lists are like
> * item a
> * item b
>
> Numbered lists are like
> * item a
> * item b
> </html>
> END
> $ parse-concrete xhtml-concrete.rng test.xhtml.short | tee test.xhtml
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>
> Title</title></head><body><p>A paragraph may contain more than one line.
> Use <em>four</em> (that was emphasized) hyphens to draw a horizontal line:</p>
> <hr/><p>Unnumbered lists are like</p><ul><li>item a</li><li>item b</li></ul><p
> >Numbered lists are like</p><ul><li>item a</li><li>item b
> </li></ul></body></html>
> $ parse-concrete xhtml-concrete.rng test.xhtml | diff test.xhtml -
> $
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.1 | 2012-08-23 02:10 UTC | MarioBlazevic | +36/−22 lines, 4 filesdep ~cmdargs | |
| 0.1 | 2012-06-14 03:59 UTC | MarioBlazevic | +1589/−0 lines, 6 filesdep +basedep +cmdargsdep +containerssetup-changed |
Dependencies of concrete-relaxng-parser-0.1.1
base <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
cmdargs >=0.9 && <0.11 0.10.21 → 0.10.22
| 2023-03-13 11:19 UTC | 0.10.22 | +22/−20 lines, 9 filesdep ~basesetup-changedPVP: major bump suggested |
| 2021-02-14 10:26 UTC | 0.10.21 | +131/−129 lines, 18 filesPVP: major bump suggested |
| 2018-01-22 18:47 UTC | 0.10.20 | +9/−30 lines, 3 filesPVP: major bump suggested |
| 2018-01-01 22:21 UTC | 0.10.19 | +62/−63 lines, 7 filesdep +semigroupsPVP ok |
| 2017-09-24 22:00 UTC | 0.10.18 | +180/−169 lines, 4 filesdep ~basePVP: major bump suggested |
showing 5 of 49 versions
containers >=0.4 && <0.6 0.5.11.0 → 0.8.1 newer than bounds
| 2026-10-04 06:08 UTC | 0.8.1 newer than bounds | +8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested |
| 2025-03-01 13:03 UTC | 0.8 newer than bounds | +8447/−7031 lines, 37 filesnew-uploaderPVP ok |
| 2023-09-27 12:15 UTC | 0.7 newer than bounds | +76/−33 lines, 3 filesPVP ok |
| 2023-09-28 04:21 UTC | 0.6.8 newer than bounds | +644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested |
| 2023-02-01 03:11 UTC | 0.6.7 newer than bounds | +783/−229 lines, 20 filesPVP: major bump suggested |
showing 5 of 43 versions
hxt >=9.2 && <10 9.3.1.21 → 9.3.1.22
| 2021-03-21 10:37 UTC | 9.3.1.22 | +93/−93 lines, 4 filesPVP ok |
| 2021-02-08 16:48 UTC | 9.3.1.21 | +119/−10 lines, 4 filesPVP: minor bump suggested |
| 2019-06-30 14:24 UTC | 9.3.1.18 | +24/−18 lines, 6 filesPVP: major bump suggested |
| 2016-10-18 11:58 UTC | 9.3.1.16 | +63/−31 lines, 12 filesdep −HUnitdep ~binarydep ~bytestringdep ~containersPVP: major bump suggested |
| 2015-02-06 16:40 UTC | 9.3.1.15 | +10/−3 lines, 1 filesPVP ok |
showing 5 of 48 versions
hxt-charproperties >=9 && <10 9.4.0.0 → 9.5.0.0
| 2021-02-08 16:50 UTC | 9.5.0.0 | +1158/−70 lines, 5 filesPVP ok |
| 2019-06-30 14:27 UTC | 9.4.0.0 | +32286/−25949 lines, 7 filesdep ~basePVP ok |
| 2015-02-06 15:25 UTC | 9.2.0.1 | +7/−3 lines, 1 filesPVP ok |
| 2014-09-10 13:03 UTC | 9.2.0.0 | +27344/−21010 lines, 7 filesPVP ok |
| 2013-08-16 10:26 UTC | 9.1.1.1 | +4/−4 lines, 1 filesPVP ok |
showing 5 of 8 versions
hxt-curl >=9.1 && <9.2 9.1.1 → 9.1.1.1
| 2015-02-06 15:28 UTC | 9.1.1.1 | +31/−35 lines, 2 filesPVP ok |
| 2012-01-12 11:33 UTC | 9.1.1 | +26/−20 lines, 2 filesdep −haskell98PVP ok |
| 2011-02-25 14:20 UTC | 9.1.0 | +15/−12 lines, 3 filesdep ~hxtPVP ok |
| 2010-10-01 18:05 UTC | 9.0.0 outside bounds | +480/−0 lines, 6 filesdep +basedep +bytestringdep +curlsetup-changed |
hxt-relaxng >=9.1 && <9.2 9.1.5.4 → 9.1.5.5
| 2015-02-06 16:41 UTC | 9.1.5.5 | +8/−3 lines, 1 filesPVP ok |
| 2015-02-06 15:30 UTC | 9.1.5.4 | +27/−24 lines, 5 filesPVP ok |
| 2015-01-20 16:05 UTC | 9.1.5.3 | +213/−65 lines, 4 filesdep ~hxt-regex-xmlschemaPVP: minor bump suggested |
| 2014-08-19 15:59 UTC | 9.1.5.1 | +11/−2 lines, 1 filesdep +network-uridep ~networkPVP ok |
| 2014-07-03 13:18 UTC | 9.1.5 | +112/−162 lines, 5 filesPVP: major bump suggested |
showing 5 of 11 versions
hxt-tagsoup >=9.1 && <9.2 9.1.3.1 → 9.1.4
| 2016-09-16 13:47 UTC | 9.1.4 | +8/−8 lines, 1 filesdep ~hxtdep ~hxt-charpropertiesdep ~hxt-unicodePVP ok |
| 2016-10-18 12:18 UTC | 9.1.3.1 | +56/−65 lines, 4 filesdep ~tagsoupPVP ok |
| 2014-04-10 14:35 UTC | 9.1.3 | +13/−3 lines, 3 files |
| 2014-01-07 10:21 UTC | 9.1.2 | +7/−4 lines, 2 filesdep ~tagsoup |
| 2012-01-12 11:38 UTC | 9.1.1 | +1/−2 lines, 1 filesdep −haskell98PVP ok |
showing 5 of 7 versions
Reverse dependencies
1 packages depend on concrete-relaxng-parser