File: ucn_fault.tmpl

package info (click to toggle)
w3c-markup-validator 1.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,044 kB
  • ctags: 332
  • sloc: perl: 2,888; xml: 1,331; python: 427; sh: 216; makefile: 75
file content (147 lines) | stat: -rw-r--r-- 6,505 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
Content-Type: application/xml; charset=UTF-8
<TMPL_IF NAME="fatal_referer_error">Vary: Referer
</TMPL_IF>X-W3C-Validator-Recursion: <TMPL_VAR NAME="depth" DEFAULT="1"><TMPL_IF NAME="fatal_error">
X-W3C-Validator-Status: Abort<TMPL_ELSE><TMPL_IF NAME="valid_status">
X-W3C-Validator-Status: <TMPL_VAR NAME="valid_status"></TMPL_IF>
X-W3C-Validator-Errors: <TMPL_VAR NAME="valid_errors_num">
X-W3C-Validator-Warnings: <TMPL_VAR NAME="valid_warnings_num"></TMPL_IF>

<?xml version='1.0' encoding="utf-8"?>
<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse" ref="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" xml:lang="en">

<status value="failed"/>

  <TMPL_IF NAME="have_warnings">
    <TMPL_INCLUDE NAME="ucn_warnings.tmpl">
  </TMPL_IF>

<message type="error">

  <TMPL_IF NAME="fatal_no_checker">
    <title>External Checker not available</title>
    <description>
	  Checking the Document Type of this document requires the help of an external tool which was either not enabled
      in this validator, or is currently unavailable. Check in the validator's system configuration 
      that <TMPL_IF NAME="fatal_missing_checker"><TMPL_VAR NAME="fatal_missing_checker"> is enabled and functional
      <TMPL_ELSE>all external checkers are enabled, and test if they are responsive</TMPL_IF>.
      The error encountered was:
      <code><TMPL_VAR NAME="fatal_checker_error" ESCAPE="HTML"></code>
    </description>
  </TMPL_IF>

  <TMPL_IF NAME="fatal_transcode_error">
    <title>Transcode Error</title>
    <description>
      A fatal error occurred when attempting to transcode the character
      encoding of the document. Either we do not support this character
      encoding ("<TMPL_VAR NAME="fatal_transcode_charset" ESCAPE="HTML">")
      yet, or you have specified a non-existent character encoding (often
      a misspelling).
      The error was: "<TMPL_VAR NAME="fatal_transcode_errmsg">".
    </description>
  </TMPL_IF>

  <TMPL_IF NAME="fatal_decode_error">
    <title>Decode Error</title>
    <description>
      A fatal error occurred when attempting to decode response body
      from <TMPL_VAR NAME="fatal_decode_uri" ESCAPE="HTML">.
      Either we do not support the content encoding specified
      ("<TMPL_VAR NAME="fatal_decode_cenc" ESCAPE="HTML">"), or an
      error occurred while decoding it.
      The error was: "<TMPL_VAR NAME="fatal_decode_errmsg" ESCAPE="HTML">".
    </description>
  </TMPL_IF>

  <TMPL_IF NAME="fatal_byte_error">
    <title>Incorrect Bytes detected</title>
    <description>
      Sorry, I am unable to validate this document because on line
      <TMPL_VAR NAME="fatal_byte_lines"> 
      it contained one or more bytes that I cannot interpret as
      <TMPL_VAR NAME="fatal_byte_charset" ESCAPE="HTML">
        (in other words, the bytes found are not valid values in the specified
        Character Encoding). Please check both the content of the file and the
        character encoding indication.
      </description>
    </TMPL_IF>

    <TMPL_IF NAME="fatal_uri_error">
      <title>URL scheme not supported</title>
      <description>
        Sorry, this type of URL scheme
        (<TMPL_VAR NAME="fatal_uri_scheme" ESCAPE="HTML">) is not
        supported by this service. Please check that you entered the URL correctly.
      </description>
    </TMPL_IF>
    <TMPL_IF NAME="fatal_no_content">
      <title>No Content to validate</title>
      <description>
        Sorry, I could not find any content to validate. It is probable that you
        clicked on the "check" button without choosing a URL, a file or entering
        the content of the document you would like to validate.
      </description>
    </TMPL_IF>

    <TMPL_IF NAME="fatal_ip_error">
      <title>IP not public</title>
      <description>
        Sorry, the IP address <TMPL_IF NAME="fatal_ip_hostname">of</TMPL_IF>
        <TMPL_VAR NAME="fatal_ip_host"> is not public.
        For security reasons, validating resources located at non-public IP
        addresses has been disabled in this service.
      </description>
    </TMPL_IF>

    <TMPL_IF NAME="fatal_http_error">
      <title>HTTP Error</title>
      <description>
        Unexpected HTTP response 
        <TMPL_VAR NAME="fatal_http_code" ESCAPE="HTML"> <TMPL_VAR NAME="fatal_http_msg" ESCAPE="HTML">
        while trying to retrieve <TMPL_VAR NAME="fatal_http_uri" ESCAPE="HTML">.
        <TMPL_IF NAME="fatal_http_dns">
          If you made recent changes to your domain name (DNS) configuration, you may
          also want to <a href="http://www.squish.net/dnscheck/">check that your
          domain records are correct</a>, or ask your hosting company to do so.
        </TMPL_IF>
        <TMPL_IF NAME="fatal_http_warn">
          More information about why this is happening may be available from
          warnings reported by the validator's HTTP (and other protocol) client
          library:
          <TMPL_VAR NAME="fatal_http_warn" ESCAPE="HTML">
        </TMPL_IF>
      </description>
    </TMPL_IF>

    <TMPL_IF NAME="fatal_mime_error">
      <title>unsupported or unrecognized Content Type</title>
      <description>
        Sorry, I am unable to validate this document because its content type
        is <TMPL_VAR NAME="fatal_mime_ct" ESCAPE="HTML">, which is
        not currently supported by this service.
      </description>
    </TMPL_IF>

    <TMPL_IF NAME="fatal_parse_extid_error">
      <title>Fatal Error: <TMPL_VAR NAME="fatal_parse_extid_msg" ESCAPE="HTML"></title>
      <description>
        I could not parse this document, because it makes reference to a
        system-specific file instead of using a well-known public identifier
      to specify the type of markup being used.</description>
    </TMPL_IF>

    <TMPL_IF NAME="fatal_referer_error">
      <title>No Referer header found!</title>
      <description>
        You have requested we check the referring page, but your browser did
        not send the HTTP "Referer" header field. This can be for several
        reasons, but most commonly it is because your browser does not
        know about this header, has been configured not to send one,
        transferred the referring document over a secure protocol such as
        https but is accessing the validator over ordinary non-secure http,
        or is behind a proxy or firewall that strips it out of the request
        before it reaches us.
      </description>
    </TMPL_IF>
  </message>
</observationresponse>