| 1 | package XML::Grammar::Screenplay::ToHTML; | ||
| 2 | $XML::Grammar::Screenplay::ToHTML::VERSION = '0.32.0'; | ||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | ▶ | use MooX 'late'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 4 | ▶ | 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 => 'html' ); | ||
| 13 | |||
| 14 | has '+module_base' => ( default => 'XML-Grammar-Fiction' ); | ||
| 15 | has '+rng_schema_basename' => ( default => 'screenplay-xml.rng' ); | ||
| 16 | |||
| 17 | has '+to_html_xslt_transform_basename' => | ||
| 18 | ( default => 'screenplay-xml-to-html.xslt', ); | ||
| 19 | |||
| 20 | |||
| 21 | sub translate_to_html | ||
| 22 | { | ||
| 23 | my ( $self, $args ) = @_; | ||
| 24 | |||
| 25 | return $self->perform_xslt_translation( | ||
| 26 | { output_format => 'html', %{$args} } ); | ||
| 27 | } | ||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | __END__ | ||