Anonymous avatar Anonymous committed 6c21d3c

Created the RNG_Renderer base class.

Comments (0)

Files changed (4)

perl/modules/XML-Grammar-Fiction/MANIFEST

 lib/XML/Grammar/Fiction/FromProto.pm
 lib/XML/Grammar/Fiction.pm
 lib/XML/Grammar/Fiction/RendererBase.pm
+lib/XML/Grammar/Fiction/RNG_Renderer.pm
 lib/XML/Grammar/Fiction/Struct/Tag.pm
 lib/XML/Grammar/Fiction/ToDocBook.pm
 lib/XML/Grammar/Fiction/ToHTML.pm

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/RNG_Renderer.pm

+package XML::Grammar::Fiction::RNG_Renderer;
+
+use strict;
+use warnings;
+
+=head1 XML::Grammar::Fiction::RNG_Renderer
+
+The base class for the Fiction-XML renderer with the common RNG.
+
+=head1 SYNOPSIS
+
+For internal use.
+
+=cut
+
+use Moose;
+
+extends ("XML::Grammar::Fiction::RendererBase");
+
+sub _get_relaxng_base_path
+{
+    my $self = shift;
+
+    return "fiction-xml.rng";
+}
+
+=head1 AUTHOR
+
+Shlomi Fish, L<http://www.shlomifish.org/>.
+
+=head1 BUGS
+
+Please report any bugs or feature requests to
+C<bug-xml-grammar-fiction at rt.cpan.org>, or through the web interface at
+L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-Grammar-Fiction>.
+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.
+
+This program is released under the following license: MIT X11.
+
+=cut
+
+1;
+

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

 
 use Moose;
 
-extends ("XML::Grammar::Fiction::RendererBase");
+extends ("XML::Grammar::Fiction::RNG_Renderer");
 
 =head1 NAME
 
 
 =cut
 
-sub _get_relaxng_base_path
-{
-    my $self = shift;
-
-    return "fiction-xml.rng";
-}
-
-
 sub _get_xslt_base_path
 {
     my $self = shift;

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

 
 use Moose;
 
-extends ("XML::Grammar::Fiction::RendererBase");
+extends( "XML::Grammar::Fiction::RNG_Renderer" );
 
 =head1 NAME
 
 
 =cut
 
-sub _get_relaxng_base_path
-{
-    my $self = shift;
-
-    return "fiction-xml.rng";
-}
-
-
 sub _get_xslt_base_path
 {
     my $self = shift;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.