Often, XML messages and schemas are created by automatic tools. These

tools may provide very nice user interfaces, but tend to produce
horrible XML.  If you have to read these ugly products, you are in for
pain.  The purpose of this module (and the script "xmlrewrite" which is
part of this distribution) is to be able to rewrite XML messages and
Schema's into something maintainable.

The main difference between this module and other beautifiers is that
the clean-up is based on schema rules.  For instance, it is permitted
to remove blanks around and inside integers, but not in strings.
Beautifiers which do not look into the schema have only limited
possibilities for cleanup, or may accidentally change the message
content.

WWW:    http://search.cpan.org/dist/XML-Rewrite/

PR:		ports/152658
Submitted by:	Patrick Powell <papowell@astart.com>
This commit is contained in:
Wen Heping 2010-12-09 07:22:41 +00:00
parent a8a4f6ded1
commit ec190f95f9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265904
5 changed files with 55 additions and 0 deletions

View file

@ -869,6 +869,7 @@
SUBDIR += p5-XML-RSSLite
SUBDIR += p5-XML-Reader
SUBDIR += p5-XML-RegExp
SUBDIR += p5-XML-Rewrite
SUBDIR += p5-XML-Rules
SUBDIR += p5-XML-SAX
SUBDIR += p5-XML-SAX-Expat

View file

@ -0,0 +1,27 @@
# New ports collection makefile for: p5-XML-Rewrite
# Date created: 2010-11-23
# Whom: Patrick Powell <papowell@astart.com>
#
# $FreeBSD$
#
PORTNAME= XML-Rewrite
PORTVERSION= 0.10
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= papowell@astart.com
COMMENT= XML processing and rewriting
RUN_DEPENDS= p5-Log-Report>=0.21:${PORTSDIR}/devel/p5-Log-Report \
p5-XML-LibXML>=1.70:${PORTSDIR}/textproc/p5-XML-LibXML
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= 5.8.0+
MAN1= xmlrewrite.1
MAN3= XML::Rewrite.3 \
XML::Rewrite::Schema.3
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (XML-Rewrite-0.10.tar.gz) = a8e68c6640c562ea2347838eaad8ac33d0228bc32726f11a5edf8f16d17cc4fa
SIZE (XML-Rewrite-0.10.tar.gz) = 44633

View file

@ -0,0 +1,15 @@
Often, XML messages and schemas are created by automatic tools. These
tools may provide very nice user interfaces, but tend to produce
horrible XML. If you have to read these ugly products, you are in for
pain. The purpose of this module (and the script "xmlrewrite" which is
part of this distribution) is to be able to rewrite XML messages and
Schema's into something maintainable.
The main difference between this module and other beautifiers is that
the clean-up is based on schema rules. For instance, it is permitted
to remove blanks around and inside integers, but not in strings.
Beautifiers which do not look into the schema have only limited
possibilities for cleanup, or may accidentally change the message
content.
WWW: http://search.cpan.org/dist/XML-Rewrite/

View file

@ -0,0 +1,10 @@
bin/xmlrewrite
%%SITE_PERL%%/XML/Rewrite.pm
%%SITE_PERL%%/XML/Rewrite.pod
%%SITE_PERL%%/XML/Rewrite/Schema.pm
%%SITE_PERL%%/XML/Rewrite/Schema.pod
%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/Rewrite/.packlist
@dirrmtry %%SITE_PERL%%/XML/Rewrite
@dirrmtry %%SITE_PERL%%/XML
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/Rewrite
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML