blib/lib/XML/Grammar/Fiction/ToDocBook.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 90.0% 18 / 20 CC 1 SCAR 0.6
CC
1
Cov
87%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/XML/Grammar/Screenplay/API/ImageListDoc.pm ↑ Summary blib/lib/XML/Grammar/Screenplay/ToDocBook.pm »
1 package XML::Grammar::Fiction::ToDocBook;
2 $XML::Grammar::Fiction::ToDocBook::VERSION = '0.32.0';
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use MooX 'late';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use XML::GrammarBase::Role::RelaxNG ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9 0 ▶use XML::GrammarBase::Role::XSLT;
Subroutine BEGIN: called CC=1 SCAR=2.6
10  
11 with('XML::GrammarBase::Role::RelaxNG');
12 with XSLT( output_format => 'docbook' );
13  
14 has '+module_base' => ( default => 'XML-Grammar-Fiction' );
15 has '+rng_schema_basename' => ( default => 'fiction-xml.rng' );
16  
17 has '+to_docbook_xslt_transform_basename' =>
18 ( default => 'fiction-xml-to-docbook.xslt', );
19  
20  
21  
22  
23 sub translate_to_docbook
24 {
25 my ( $self, $args ) = @_;
26  
27 return $self->perform_xslt_translation(
28 { output_format => 'docbook', %{$args} } );
29 }
30  
31 1;
32  
33 __END__
« blib/lib/XML/Grammar/Screenplay/API/ImageListDoc.pm ↑ Summary blib/lib/XML/Grammar/Screenplay/ToDocBook.pm »