XML::Filter::Glossary::XBEL - Implements an XBEL-based glossary system.
You should really be using XML::Filter::Glossary proper, but since you're here :
use XML::Filter::Glossary::XBEL; my $glossary = XML::Filter::Glossary::XBEL->new(); my $parser = XML::SAX::ParserFactory->parser(Handler=>$glossary); $glossary->set_keyword("aaronland"); $parser->parse_uri("/path/to/glossary.xbel"); print $glossary->result();
Perform a glossary lookup via an XBEL files.
Inherits from XML::SAX::Base
Set the keyword to lookup in the glossary.
$text will be compared against :
# No, the package doesn't use XPath. # I just find the syntax handy, sometime. /xbel//bookmark[title='$text']
Returns a string, formatted as an HTML anchor element.
If no match was found, returns undef.
September 10, 2002
Aaron Straup Cope
Copyright (c) 2002, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.