Contains renderers and parsers for both XML and HTML 5 document fragments,

which share data structures wo that it's easy to work with both.  Document
fragments are bits of documents, which are not constrained by some of the
high-level structure rules (in particular, they may contain more than one
root element).

WWW: http://hackage.haskell.org/package/xmlhtml

Obtained from:	FreeBSD Haskell
This commit is contained in:
Gabor Pali 2011-08-13 20:59:10 +00:00
parent 8cc0dbf548
commit 1ca1d55acd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=279638
4 changed files with 40 additions and 0 deletions

View file

@ -263,6 +263,7 @@
SUBDIR += hs-xhtml
SUBDIR += hs-xhtml-docs
SUBDIR += hs-xml
SUBDIR += hs-xmlhtml
SUBDIR += hsb-aspell
SUBDIR += htdig
SUBDIR += html

View file

@ -0,0 +1,21 @@
# New ports collection makefile for: hs-xmlhtml
# Date created: March 13, 2011
# Whom: haskell@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xmlhtml
PORTVERSION= 0.1.5.2
CATEGORIES= textproc haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= XML parser and renderer with HTML 5 quirks mode
LICENSE= BSD
CABAL_SETUP= Setup.hs
USE_CABAL= blaze-builder>=0.2 blaze-html>=0.3.2 parsec>=3.0 text>=0.11
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (cabal/xmlhtml-0.1.5.2.tar.gz) = 35a83ba09a69b429583ea4e7c583b6e4292cf85de9e5d4e6588735dff0c7a4c4
SIZE (cabal/xmlhtml-0.1.5.2.tar.gz) = 123539

View file

@ -0,0 +1,16 @@
Contains renderers and parsers for both XML and HTML 5 document fragments,
which share data structures wo that it's easy to work with both. Document
fragments are bits of documents, which are not constrained by some of the
high-level structure rules (in particular, they may contain more than one
root element).
Note that this is not a compliant HTML 5 parser. Rather, it is a parser for
HTML 5 compliant documents. It does not implement the HTML 5 parsing algorithm,
and should generally be expected to perform correctly only on documents that
you trust to conform to HTML 5. This is not a suitable library for implementing
web crawlers or other software that will be exposed to documents from outside
sources. The result is also not the HTML 5 node structure, but rather something
closer to the physical structure. For example, omitted start tags are not
inserted (and so, their corresponding end tags must also be omitted).
WWW: http://hackage.haskell.org/package/xmlhtml