« blib/lib/XML/Grammar/Fiction/App/ToHTML.pm
↑ Summary
blib/lib/XML/Grammar/Screenplay/App/ToDocBook.pm »
| 1 | package XML::Grammar::Fiction::ToHTML; | ||
| 2 | $XML::Grammar::Fiction::ToHTML::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 Carp (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | ▶ | use MooX 'late'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 3 | ▶ | use XML::GrammarBase::Role::RelaxNG (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 0 | ▶ | use XML::GrammarBase::Role::XSLT; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 12 | |||
| 13 | with('XML::GrammarBase::Role::RelaxNG'); | ||
| 14 | with XSLT( output_format => 'html' ); | ||
| 15 | |||
| 16 | has '+module_base' => ( default => 'XML-Grammar-Fiction' ); | ||
| 17 | has '+rng_schema_basename' => ( default => 'fiction-xml.rng' ); | ||
| 18 | |||
| 19 | has '+to_html_xslt_transform_basename' => | ||
| 20 | ( default => 'fiction-xml-to-html.xslt', ); | ||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | sub translate_to_html | ||
| 26 | { | ||
| 27 | my ( $self, $args ) = @_; | ||
| 28 | |||
| 29 | return $self->perform_xslt_translation( | ||
| 30 | { output_format => 'html', %{$args} } ); | ||
| 31 | } | ||
| 32 | |||
| 33 | 1; | ||
| 34 | |||
| 35 | __END__ | ||