collate text events in a SAX parser

This commit is contained in:
espie 2006-11-14 19:08:18 +00:00
parent 0aa5c715b1
commit 8fc3ec36ba
4 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/14 19:08:18 espie Exp $
COMMENT= "collate XML character events in one chunk"
MODULES= cpan
DISTNAME= XML-Filter-BufferText-1.01
CATEGORIES= textproc
# perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::textproc/p5-XML-SAX
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (XML-Filter-BufferText-1.01.tar.gz) = 2992c0387632583b966ab9c965b25512
RMD160 (XML-Filter-BufferText-1.01.tar.gz) = 14ead386d7d019c6faeec1acf395ea42cf936769
SHA1 (XML-Filter-BufferText-1.01.tar.gz) = 32ada41fb4d8843c1e587945279535e5cbf44cf1
SIZE (XML-Filter-BufferText-1.01.tar.gz) = 2269

View File

@ -0,0 +1,5 @@
This is a very simple filter. One common cause of grief (and programmer
error) is that XML parsers aren't required to provide character events
in one chunk. They can, but are not forced to, and most don't. This
filter does the trivial but oft-repeated task of putting all characters
into a single event.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/14 19:08:18 espie Exp $
${P5SITE}/XML/Filter/
${P5SITE}/XML/Filter/BufferText.pm
@man man/man3p/XML::Filter::BufferText.3p