Ignore:
Timestamp:
2002-11-18T17:43:56+13:00 (21 years ago)
Author:
kjdon
Message:

added John T's changes into CVS - added info to enable retrieval of usage info in xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/XMLPlug.pm

    r3107 r3540  
    3535
    3636use XML::Parser;
     37my $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
     43my $options = { 'name'     => "XMLPlug",
     44                 'desc'     => "",
     45                     'inherits' => "yes",
     46                     'args'     => $arguments };
     47
    3748
    3849my ($self);
     
    4354    $self = new BasPlug ($class, @_);
    4455
     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   
    4561    my $parser = new XML::Parser('Style' => 'Stream',
    4662                 'Handlers' => {'Char' => \&Char,
Note: See TracChangeset for help on using the changeset viewer.