/[pub]/test/html-webhacc/cc.cgi
Suika

Diff of /test/html-webhacc/cc.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.60 by wakaba, Sat Jul 26 11:27:25 2008 UTC revision 1.65 by wakaba, Sun Sep 14 14:36:12 2008 UTC
# Line 1  Line 1 
1  #!/usr/bin/perl  #!/usr/bin/perl
2    # -d:DProf
3  use strict;  use strict;
4    
5  use lib qw[/home/httpd/html/www/markup/html/whatpm  use lib qw[/home/httpd/html/www/markup/html/whatpm
# Line 33  use CGI::Carp qw[fatalsToBrowser]; Line 34  use CGI::Carp qw[fatalsToBrowser];
34    $out->html_header;    $out->html_header;
35    $out->unset_flush;    $out->unset_flush;
36    
37      $out->generate_input_section ($http);
38    
39      my $u = $http->get_parameter ('uri');
40      my $s = $http->get_parameter ('s');
41      if ((not defined $u or not length $u) and
42          (not defined $s or not length $s)) {
43        exit;
44      }
45    
46    require WebHACC::Result;    require WebHACC::Result;
47    my $result = WebHACC::Result->new;    my $result = WebHACC::Result->new;
   $result->{conforming_min} = 1;  
   $result->{conforming_max} = 1;  
48    $result->output ($out);    $result->output ($out);
49    
50    require WebHACC::Input;    require WebHACC::Input;
# Line 44  use CGI::Carp qw[fatalsToBrowser]; Line 52  use CGI::Carp qw[fatalsToBrowser];
52    
53    check_and_print ($input => $result => $out);    check_and_print ($input => $result => $out);
54        
   $result->generate_result_section;  
   
55    $out->nav_list;    $out->nav_list;
56    
57    exit;    exit;
# Line 61  sub check_and_print ($$$) { Line 67  sub check_and_print ($$$) {
67    $input->generate_transfer_sections ($result);    $input->generate_transfer_sections ($result);
68    
69    unless (defined $input->{s}) {    unless (defined $input->{s}) {
70      $result->{conforming_min} = 0;      ## NOTE: This is an error of the implementation.
71        $result->layer_uncertain ('transfer');
72        $result->generate_result_section;
73    
74        $out->input ($original_input);
75      return;      return;
76    }    }
77    
# Line 69  sub check_and_print ($$$) { Line 79  sub check_and_print ($$$) {
79      'text/cache-manifest' => 'WebHACC::Language::CacheManifest',      'text/cache-manifest' => 'WebHACC::Language::CacheManifest',
80      'text/css' => 'WebHACC::Language::CSS',      'text/css' => 'WebHACC::Language::CSS',
81      'text/html' => 'WebHACC::Language::HTML',      'text/html' => 'WebHACC::Language::HTML',
82        'text/x-h2h' => 'WebHACC::Language::H2H',
83      'text/x-webidl' => 'WebHACC::Language::WebIDL',      'text/x-webidl' => 'WebHACC::Language::WebIDL',
84    
85      'text/xml' => 'WebHACC::Language::XML',      'text/xml' => 'WebHACC::Language::XML',
# Line 113  sub check_and_print ($$$) { Line 124  sub check_and_print ($$$) {
124          unless defined $subinput->{base_uri};          unless defined $subinput->{base_uri};
125      $subinput->{parent_input} = $input;      $subinput->{parent_input} = $input;
126    
127      $subinput->start_section ($result);      my $subresult = WebHACC::Result->new;
128      check_and_print ($subinput => $result => $out);      $subresult->output ($out);
129      $subinput->end_section ($result);      $subresult->parent_result ($result);
130    
131        $subinput->start_section ($subresult);
132        check_and_print ($subinput => $subresult => $out);
133        $subinput->end_section ($subresult);
134    }    }
135    
136      $result->generate_result_section;
137    
138    $out->input ($original_input);    $out->input ($original_input);
139  } # check_and_print  } # check_and_print
140    

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.65

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24