#
# Conditional build:
%bcond_with tests # perform "make test" (last will fail, bug in test script)
-#
-%include /usr/lib/rpm/macros.perl
+
%define pdir XML
%define pnam Filter-Dispatcher
+%include /usr/lib/rpm/macros.perl
Summary: XML::Filter::Dispatcher - path based event dispatching with DOM support
Summary(pl.UTF-8): XML::Filter::Dispatcher - koordynacja zdarzeń w oparciu o ścieżkę ze wsparciem dla DOM
Name: perl-XML-Filter-Dispatcher
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 1ffc34ea2f56a1afaba23702de1ab15e
+URL: http://search.cpan.org/dist/XML-Filter-Dispatcher/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
WARNING: Beta code alert.
A SAX2 filter that dispatches SAX events based on "EventPath" patterns
-as the SAX events arrive. The SAX events are not buffered or
-converted to an in-memory document representation like a DOM tree.
-This provides for low lag operation because the actions associated
-with each pattern are executed as soon as possible, usually in an
-element's start_element() event method.
+as the SAX events arrive. The SAX events are not buffered or converted
+to an in-memory document representation like a DOM tree. This provides
+for low lag operation because the actions associated with each pattern
+are executed as soon as possible, usually in an element's
+start_element() event method.
This differs from traditional XML pattern matching tools like XPath
and XSLT (which is XPath-based) which require the entire document to
miarę napływu zdarzeń SAX. Zdarzenia SAX nie są buforowane ani
konwertowane do reprezentacji dokumentów w pamięci w rodzaju drzewa
DOM. Daje to działanie z małymi opóźnieniami, ponieważ akcje powiązane
-z każdym wzorcem są wykonywane tak szybko jak to możliwe, zazwyczaj
-w metodzie zdarzenia elementu start_element().
+z każdym wzorcem są wykonywane tak szybko jak to możliwe, zazwyczaj w
+metodzie zdarzenia elementu start_element().
Różni się to od tradycyjnych narzędzi dopasowujących wzorce XML jak
-XPath czy XSLT (które jest oparte na XPath), wymagających zbudowania
-w pamięci całego dokumentu (jako "drzewa DOM") przed wykonywaniem
+XPath czy XSLT (które jest oparte na XPath), wymagających zbudowania w
+pamięci całego dokumentu (jako "drzewa DOM") przed wykonywaniem
zapytań. W terminologii SAX oznacza to, że muszą zbudować drzewo DOM
ze zdarzeń SAX i opóźnić dopasowywanie wzorców do wykonania metody
zdarzenia end_document().