Commits

Anonymous committed cd3ae36

Extract base class XML::Grammar::Screenplay::XSLT::Base .

This is to encapsulate the common +rng_schema_basename.

  • Participants
  • Parent commits eb11143

Comments (0)

Files changed (4)

perl/modules/XML-Grammar-Fiction/MANIFEST

 lib/XML/Grammar/Screenplay/ToDocBook.pm
 lib/XML/Grammar/Screenplay/ToHTML.pm
 lib/XML/Grammar/Screenplay/ToTEI.pm
+lib/XML/Grammar/Screenplay/XSLT/Base.pm
 Makefile.PL
 MANIFEST
 META.yml # Will be created by "make dist"

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

 
 use Moose;
 
-extends('XML::Grammar::FictionBase::XSLT::Converter');
+extends('XML::Grammar::Screenplay::XSLT::Base');
 
-has '+rng_schema_basename' => (default => "screenplay-xml.rng");
 has '+xslt_transform_basename' => (default => "screenplay-xml-to-html.xslt");
 
 =head1 NAME

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/ToTEI.pm

 
 use Moose;
 
-extends('XML::Grammar::FictionBase::XSLT::Converter');
+extends('XML::Grammar::Screenplay::XSLT::Base');
 
-has '+rng_schema_basename' => (default => "screenplay-xml.rng");
 has '+xslt_transform_basename' => (default => "screenplay-xml-to-tei.xslt");
 
 =head1 NAME

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/XSLT/Base.pm

+package XML::Grammar::Screenplay::XSLT::Base;
+
+use Moose;
+
+extends('XML::Grammar::FictionBase::XSLT::Converter');
+
+has '+rng_schema_basename' => (default => "screenplay-xml.rng");
+
+1;
+
+__END__
+
+=head1 NAME
+
+XML::Grammar::Screenplay::XSLT::Base - base module for XML::Grammar::Screenplay
+XSLT conversions.
+
+=head1 VERSION
+
+Version 0.2.0
+
+=head1 AUTHOR
+
+Shlomi Fish, L<http://www.shlomifish.org/>.
+
+=head1 BUGS
+
+Please report any bugs or feature requests to
+C<bug-xml-grammar-screenplay at rt.cpan.org>, or through the web interface at
+L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-Grammar-Screenplay>.
+I will be notified, and then you'll automatically be notified of progress on
+your bug as I make changes.
+
+=head1 ACKNOWLEDGEMENTS
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2007 Shlomi Fish, all rights reserved.
+
+This program is released under the following license: MIT X11.
+
+=cut