Subject: pkg/12645: new package p5-libxml-enno
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nrahlstr@winternet.com>
List: netbsd-bugs
Date: 04/13/2001 10:17:53
>Number: 12645
>Category: pkg
>Synopsis: new package p5-libxml-enno
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Apr 13 13:07:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Nathan Ahlstrom
>Release: 04/13/2001 pkgsrc
>Organization:
me
>Environment:
System: NetBSD games 1.5.1_BETA NetBSD 1.5.1_BETA (GAMES) #0: Tue Apr 10 17:28:44 CDT 2001 root@games:/a/src/sys/arch/i386/compile/GAMES i386
>Description:
p5-libxml-enno is a new package. It relies upon several packages
which were also send-pr'ed today. Specifically it needs:
p5-libxml-perl pkg/12641
p5-Parse-Yapp pkg/12635
>How-To-Repeat:
libxml-enno is needed by the Template-Toolkit perl module.
>Fix:
Included is a shar archive and a Change Log listing.
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# p5-libxml-enno
# p5-libxml-enno/files
# p5-libxml-enno/files/md5
# p5-libxml-enno/pkg
# p5-libxml-enno/pkg/DESCR
# p5-libxml-enno/pkg/PLIST
# p5-libxml-enno/Makefile
#
echo c - p5-libxml-enno
mkdir -p p5-libxml-enno > /dev/null 2>&1
echo c - p5-libxml-enno/files
mkdir -p p5-libxml-enno/files > /dev/null 2>&1
echo x - p5-libxml-enno/files/md5
sed 's/^X//' >p5-libxml-enno/files/md5 << 'END-of-p5-libxml-enno/files/md5'
X$NetBSD$
X
XSHA1 (libxml-enno-1.04.tar.gz) = 9f6d54f6df71013bb38bfde90fb441ee2dcc3fe6
END-of-p5-libxml-enno/files/md5
echo c - p5-libxml-enno/pkg
mkdir -p p5-libxml-enno/pkg > /dev/null 2>&1
echo x - p5-libxml-enno/pkg/DESCR
sed 's/^X//' >p5-libxml-enno/pkg/DESCR << 'END-of-p5-libxml-enno/pkg/DESCR'
Xlibxml-enno contains the modules XML::DOM, XML::XQL, XML::Checker and
Xseveral other packages. The XML::DOM code is fairly stable and has been
Xused quite a bit. The other code should be considered alpha code.
END-of-p5-libxml-enno/pkg/DESCR
echo x - p5-libxml-enno/pkg/PLIST
sed 's/^X//' >p5-libxml-enno/pkg/PLIST << 'END-of-p5-libxml-enno/pkg/PLIST'
X@comment $NetBSD$
END-of-p5-libxml-enno/pkg/PLIST
echo x - p5-libxml-enno/Makefile
sed 's/^X//' >p5-libxml-enno/Makefile << 'END-of-p5-libxml-enno/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= libxml-enno-1.04
XPKGNAME= p5-${DISTNAME}
XCATEGORIES= textproc perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN:=XML/}
X
XMAINTAINER= packages@NetBSD.org
XHOMEPAGE= http://www.erols.com/enno
XCOMMENT= Several XML manipulation tools, including XML::DOM
X
XDEPENDS+= p5-XML-Parser>=2.30:../p5-XML-Parser
XDEPENDS+= p5-Date-Manip>=5.39:../../devel/p5-Date-Manip
XDEPENDS+= p5-libwww>=5.50:../../www/p5-libwww
XDEPENDS+= p5-libxml-perl>=0.07:../../textproc/p5-libxml-perl
XDEPENDS+= p5-Parse-Yapp>=1.04:../../devel/p5-Parse-Yapp
X
XUSE_PERL5= yes
XPERL5_PACKLIST= ${PERL5_SITEARCH}/auto/libxml-enno/.packlist
X
Xdo-configure:
X @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
X
X.include "../../mk/bsd.pkg.mk"
END-of-p5-libxml-enno/Makefile
exit
Change History for libxml-enno:
Some entries in this file have module specific prefixes, e.g DOM for XML::DOM,
XQL for XML::XQL and CHK for XML::Checker.
See Changes.DOM, Changes.XQL and Changes.Checker for the change history prior
to libxml-enno 1.00.
1.04 (tjmather)
- CHK: Fixed bug in XML::Checker::Parser with the setting
@InterceptedHandlers (William Horka)
- CHK: Fixed errors in test case t/chk_batch.t. Most had to do with change
from "well-formed" to "well-formed (invalid token)" in error message.
Also, the tests in chk_batch.t for the xml file attr3 did not return any
errors any more, since XML::Parser >= 2.28 doesn't seem to call the entity
handler more than once if a entity is repeated.
- CHK: Updated t/chk_batch.t to be independent of the order of the error
messages generated. This is because the order of the error messages
seems to be dependent on the version of perl used (e.g. 5.005 vs. 5.6.0).
- DOM: Fixed XML::DOM::DocumentType::replaceChild to call
SUPER::replaceChild instead of SUPER::appendChild (John Salmon)
- DOM: Fixed XML::DOM::Text::splitText to use substr instead of
(non-existant) substring and insertBefore instead of (non-existant)
insertAfter (Duncan Cameron)
- DOM: Fixed XML::DOM::Text::print to encode '>' and '"' (John Cope)
- DOM: Added code to convert Model argument of XML::Parser::Dom::Element
from XML::Parser::ContentModel to string. XML::Parser >= 2.28 passes
a XML::Parser::ContentModel object for the model arg of the Element handler
while earlier versions passed a string. Fixed cannot find equals
method in XML::Parser::ContentModel in dom_extent.t.
- DOM: Updated XML::DOM::Entity and XML::Parser::Dom::Entity to reflect
new Entity handler API in XML::Parser >= 2.28. There is a new isParam
parameter and the name no longer starts with '%' if it is a parameter
entity.
- DOM: Fixed errors in test cases t/build_dom.t t/dom_attr.t by changing
hair (none | blue | yellow) "yellow" to hair (none|blue|yellow) 'yellow'
Also fixed t/dom_jp_attr by changing equivilent japenese text.
- DOM: Fixed errors in test cases t/dom_print.t and t/dom_jp_print.t
by changing <!ELEMENT doc (beavis | butthead)*> to
<!ELEMENT doc (beavis|butthead)*>
- DOM: Fixed error in test 3 of t/dom_jp_attr.t under Perl 5.6.0
by changing $FILE->print("$name $type") in XML::DOM::AttDef::print.
- XQL: Updated XQLParser/Makefile.PL to use yapp instead of yapp.pl
since yapp.pl was renamed to yapp starting with Parse::Yapp 0.30.
This fixed a problem where it mangled XML/XQL/Parser.pm if
Parse::Yapp >= 0.30 was installed.
- XQL: Replaced '>' in __DATA__ section of t/xql_big.t with '>'.
1.03 (enno) (not released)
- XQL: Fixed $intersect$ operator. It used to throw exception when parsing the XQL
expression. Something like "xql_check method not implemented".
(Thanks to Tatiana <tasc@lbd.dcc.ufmg.br>)
- XQL: Fixed q// and qq// operators. Typo in RE caused them to be unrecognized
by the XQL expression parser.
- XQL: Fixed 'any' and 'all' modifiers. Typos in Parser.yp caused them to fail.
(Thanks to James Curran <jcurran@staff.cs.usyd.edu.au>)
- XQL: Fixed warning on Windows when using XML::XQL, related to tput.
- CHK: Fixed errors in test case t/chk_batch.t for Windows. Most were related
to differences in newlines.
1.02 (enno) 3/2/2000
- This release fixes some installation related stuff.
- Changed =head3 pod directives to =head2 in XML/Checker.pm
This used to cause warnings when generating the man pages with pod2man.
- Changed dependency of XML::Parser::PerlSAX to require version 0.07.
libxml-perl 0.06 had a bad version number, causing a warning when doing 'make'.
- Removed the libxml-enno.ppd file from the distribution. As Matt Sergeant
pointed out, these PPD files are platform dependant and you can generate
them yourselves with 'make ppd'. If you still need one, try Simon Oliver's
website (see below.)
1.01 (enno) 2/17/2000
- This release contains XML::DOM 1.27, XML::XQL 0.63 and XML::Checker 0.09.
- Added FAQ.xml (Needs more stuff.)
- Added dependencies in Makefile.PL for LWP::UserAgent and XML::Parser::PerlSAX.
See Makefile.PL for details.
- Fixed XML::Filter::SAXT (a PerlSAX that works like Unix' tee command.)
- Renamed XML::DOM::PerlSAX to XML::Handler::BuildDOM. A warning will be issued
with -w if your code uses XML::DOM::PerlSAX. The reason for this change
is that the new name is more consistent with how other PerlSAX related
classes are named.
Also added a test case for it in t/build_dom.t.
- Added XML::Filter::DetectWS, a first stab at a PerlSAX filter that detects
ignorable whitespace. Needs more testing!
- Added XML::Filter::Reindent, a first stab at a PerlSAX filter that removes and
inserts whitespace into the PerlSAX event stream to reindent the XML document
for pretty printing functionality. Needs more testing!
- Added XML::Handler::Composer. Yet another XML printer/writer that has several
features missing in other implementations.
See docs for details. Needs more testing!
- Added bin/pretty.pl, an XML pretty printer that uses the previous 3 classes.
- Added XML::UM for encoding support when printing XML. Needs more testing!
- Added XML::Handler::PrintEvents for debugging PerlSAX filters/producers.
- Added a PPM description called: libxml-enno.ppd
I have no idea whether or how it works, so let me know!
(Thanks to Simon Oliver <Simon.Oliver@umist.ac.uk>, who has more package
files at http://www.bi.umist.ac.uk/packages)
- DOM: Reimplemented all Node types as a blessed array reference instead of a
blessed hash reference. This should speed things up and consume less memory.
Downside is that the code is harder to read and it's harder to extend the Node
classes.
- DOM: In XML::DOM::Element, attributes are stored in a NamedNodeMap with the
hash key 'A' (i.e. _A). Previously, the NamedNodeMap object was created even
if there were no attributes. For speed and memory reasons, we now create the
NamedNodeMap objects only when needed.
- DOM: The parsefile() method of XML::DOM::Parser now supports URLs.
It uses LWP to download the remote file. See XML::DOM::Parser documentation
for more info. This probably belongs in XML::Parser.
- DOM: Added new test cases in t/dom_jp_*.t and a Japanese XML file in
samples/minutes.xml.
(Thanks to OKABE, Keiichi <okabe@isl.ntt.co.jp>)
- DOM: Added support for parameter entity references (e.g. %pent;) in the DTD.
If the reference points to a SYSTEM entity and XML::Parser read and expanded
it (ParseParamEnt=1) and XML::DOM::Parser option ExpandParamEnt=0, then it will
still add the contents of the entity to the DTD, but the nodes are flagged as
'Hidden'. In this case, it will also add an EntityReference node to the DTD.
The Hidden nodes are skipped when printing, so this way you can suppress the
expansion of external parameter entity references. Note that we still want to
add these hidden nodes to the DTD, because they might contain e.g. ENTITY
declarations that can be referenced further in the document.
See new testcase t/dom_extent.t.
(Thanks to Guillaume Rouchy <rouchyg@gatwick.geco-prakla.slb.com>)
- XQL: all XML::XQL::Operator classes now 'use fields', which makes them faster
and smaller (see man fields(3) and man base(3)).
- XQL: the minus '-' sign is now allowed in XQL function names etc.
- XQL: added the XQL+ document() method, which creates XML::DOM::Documents
on the fly. The document() parameter can be a simple string (i.e. filename or
URL) or a query that evaluates to a bunch of filenames.
See XML::XQL for details. See also new test case: t/xql_document.t
- XQL: added the following methods which were found in the XPath spec to XQL+:
round, floor, ceiling, concat, starts-with, contains, substring-before,
substring-after, substring (not the same as substr, the index is 1-based!),
translate, string-length (similar to length, but is also a method),
normalize-space, sum. Also added ends-with, which is not part of XPath.
See XML::XQL(3) for details.
- XQL: added XML::XQL::Query::dispose(). Call dispose on your query object to
clean up circular references after you're done and avoid memory leaks.
- CHK: error 103 (undefined attribute) was not detected in all cases.
(Thanks to Mark Hewis <mark@talbat.demon.co.uk>)
- CHK: error 103 - The error context used to contain the hash key 'Elem',
but since all other errors use 'Element', this was changed to 'Element'
as well.
- CHK: The parsefile() method of XML::Checker::Parser now supports URLs.
It uses LWP to download the remote file. See XML::Checker::Parser documentation
for more info.
- CHK: Fixed attlist_decl() handler to use 'ElementName' instead of 'EntityName'.
1.00 (enno) 10/26/1999
- This is the first version of libxml-enno. It contains
XML::DOM 1.26, XML::XQL 0.62 and XML::Checker 0.08.
See Changes.DOM, Changes.XQL and Changes.Checker for the change history prior
to libxml-enno.
- I redid the html documentation. Lots of cross links, more info. Check it out!
- Added XML::DOM::PerlSAX. It's a PerlSAX handler that builds DOM trees.
- Added XML::Filter::SAXT. It's a PerlSAX handler that forwards the callbacks
to 2 or more PerlSAX handlers, kind of like the Unix 'tee' command.
- Added XML::RegExp. It contains regular expressions for several XML tokens,
as defined in the XML spec.
- DOM: XML::DOM warnings now go thru XML::DOM::warning()
(which uses warn by default)
You can redefine XML::DOM::warning() to change this behavior.
Currently, warning() is called only in one place:
in XML::DOM::AttListDecl::addAttDef when multiple attribute definitions exist
for the same attribute.
- DOM: I added the xql() method to XML::DOM::Node as yet another shortcut to
perform XQL queries on nodes. Make sure you 'use' XML::XQL and XML::XQL::DOM.
- XQL: Added the '..' operator. If '.' returns the current node, '..' returns
the parent node. This is not standard XQL.
- XQL: Removed $`, $' and $& from code to speed up pattern matching in general
- XQL: The query parser used to allow bogus characters after a valid expression.
It now croaks when there is stuff left over.
(Thanks to Jack Chu <Jack_Chu@mail.bankone.com>)
- XQL: Added links to Japanese versions of XML::XQL and XML::XQL::Tutorial
by Takanori Kawai (aka Hippo2000 <kawaitkn@sal.pb.nttdata.co.jp>)
to the XML::XQL documentation and web pages
- XQL: The `tput ...` calls were put in a wrapper function that checks the OS
its running under to prevent warning messages under Windows.
- CHK: XML::Checker now implements the PerlSAX Handler interface.
- CHK: Fixed XML::Checker::Parser to use XML::Parser::Expat::specified_attr to
determine which attributes were specified (and which were defaulted by expat.)
(I was using original_string before and parsing the string myself to
figure out which attributes were specified, but there was a bug in my code
which would generate bogus error-159's.)
(Thanks to Jim Anderson <jander@ml.com>)
- CHK: External DTDs with relative file paths (and without the 'file://' prefix)
are now located using SGML_SEARCH_PATH.
See XML::Checker::Parser pod for details.
(Thanks to Stephane Bortzmeyer <bortzmeyer@pasteur.fr>)
- CHK: XML::Checker::DOM is now obsolete. I moved the functionality to XML::DOM.
- CHK: The error descriptions in the XML::Checker manual page now have links to
the appropriate sections and Validity Constraints in the XML spec.
>Release-Note:
>Audit-Trail:
>Unformatted: