Changeset 3540 for trunk/gsdl/perllib/plugins/XMLPlug.pm
- Timestamp:
- 2002-11-18T17:43:56+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/XMLPlug.pm
r3107 r3540 35 35 36 36 use XML::Parser; 37 my $arguments = [ { 'name' => "process_exp", 38 'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. Each plugin has its own default process_exp. e.g HTMLPlug defaults to '(?i)\.html?\$' i.e. all documents ending in .htm or .html (case-insensitive).", 39 'type' => "string", 40 'deft' => q^(?i)\.xml$^, 41 'reqd' => "no" } ]; 42 43 my $options = { 'name' => "XMLPlug", 44 'desc' => "", 45 'inherits' => "yes", 46 'args' => $arguments }; 47 37 48 38 49 my ($self); … … 43 54 $self = new BasPlug ($class, @_); 44 55 56 57 # 14-05-02 To allow for proper inheritance of arguments - John Thompson 58 my $option_list = $self->{'option_list'}; 59 push( @{$option_list}, $options ); 60 45 61 my $parser = new XML::Parser('Style' => 'Stream', 46 62 'Handlers' => {'Char' => \&Char,
Note:
See TracChangeset
for help on using the changeset viewer.