Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 9445a91

Added the stylesheet parameter.

  • Participants
  • Parent commits 3458bd5

Comments (0)

Files changed (1)

File 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(),
         ],
     );