Commits

Shlomi Fish committed a3ab642

Convert ::Screenplay::ToHTML to XML::GrammarBase .

  • Participants
  • Parent commits 5514131

Comments (0)

Files changed (2)

File perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/ToDocBook.pm

 (
     default => 'fiction-xml-to-docbook.xslt',
 );
+
 =head1 NAME
 
 XML::Grammar::Fiction::ToDocBook - module that converts the Fiction-XML to

File perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/ToHTML.pm

 
 use MooX 'late';
 
-extends('XML::Grammar::Screenplay::XSLT::Base');
+use XML::GrammarBase::Role::RelaxNG;
+use XML::GrammarBase::Role::XSLT;
 
-has '+xslt_transform_basename' => (default => "screenplay-xml-to-html.xslt");
+with ('XML::GrammarBase::Role::RelaxNG');
+with XSLT(output_format => 'html');
+
+has '+module_base' => (default => 'XML-Grammar-Fiction');
+has '+rng_schema_basename' => (default => 'screenplay-xml.rng');
+
+has '+to_html_xslt_transform_basename' =>
+(
+    default => 'screenplay-xml-to-html.xslt',
+);
 
 =head1 NAME
 
 {
     my ($self, $args) = @_;
 
-    return $self->perform_translation($args);
+    return $self->perform_xslt_translation(
+        {output_format => 'html', %{$args}}
+    );
 }
 
 1;