Changeset 14969


Ignore:
Timestamp:
2008-02-12T15:26:46+13:00 (14 years ago)
Author:
davidb
Message:

ApplyXSLT java class changed to take -m and -t options. Corresponding part in BasPlugout that calls these changed accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugouts/BasPlugout.pm

    r14932 r14969  
    663663    $xslt_file = "\"".$xslt_file."\"";
    664664
    665     my $cmd = "| java -cp $java_class_path org.nzdl.gsdl.ApplyXSLT $xslt_file ";
     665    my $cmd = "| java -cp $java_class_path org.nzdl.gsdl.ApplyXSLT -t $xslt_file ";
    666666
    667667    if (defined $self->{'mapping_file'} and $self->{'mapping_file'} ne ""){
    668668    my $mapping_file_path = "\"".$self->{'mapping_file'}."\"";
    669     $cmd .= $mapping_file_path;
    670     }
    671  
     669    $cmd .= "-m $mapping_file_path";
     670    }
     671
    672672    open(*XMLWRITER, $cmd)
    673673    or die "can't open pipe to xslt: $!";
     
    678678    print XMLWRITER "<?DocStart?>\n";       
    679679    print XMLWRITER "$output_file_name\n";
     680
    680681 
    681682  }
Note: See TracChangeset for help on using the changeset viewer.