Commits

Anonymous committed 9445a91

Added the stylesheet parameter.

Comments (0)

Files changed (1)

modules/App-XML-DocBook-Docmake/lib/App/XML/DocBook/Docmake.pm

     _input_path
     _mode
     _output_path
+    _stylesheet
     _verbose
 ));
 
 
     my $output_path;
     my $verbose = 0;
+    my $stylesheet;
 
     my $ret = GetOptionsFromArray($argv,
         "o=s" => \$output_path,
         "v|verbose" => \$verbose,
+        "x|stylesheet=s" => \$stylesheet,
     );
 
     $self->_output_path($output_path);
     $self->_verbose($verbose);
+    $self->_stylesheet($stylesheet);
 
     my $mode = shift(@$argv);
 
 {
     my $self = shift;
 
+    my @stylesheet_params = ("http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl");
+
+    if (defined($self->_stylesheet()))
+    {
+        @stylesheet_params = ($self->_stylesheet());
+    }
+
     return $self->_exec_command(
         [
             "xsltproc",
             "-o", $self->_output_path(),
-            "http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl",
+            @stylesheet_params,
             $self->_input_path(),
         ],
     );