bug 4472: in a hackish fashion, quiet warnings about DOCTYPE in the XSLT
authorGalen Charlton <gmcharlt@gmail.com>
Wed, 6 Oct 2010 21:42:46 +0000 (17:42 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 6 Oct 2010 21:44:34 +0000 (17:44 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
misc/translator/TmplTokenizer.pm

index 838a59f..1413f77 100644 (file)
@@ -473,7 +473,8 @@ sub _next_token_internal {
                    ($kind, $it) = (TmplTokenType::TAG, "$head>");
                    $this->_set_readahead( $post );
                    $ok_p = 1;
-                   warn_normal "SGML \"closed start tag\" notation: $head<\n", $this->line_number if $tail eq '';
+                   warn_normal "SGML \"closed start tag\" notation: $head<\n", $this->line_number if $tail eq '' 
+                and $head ne '<!DOCTYPE stylesheet ['; # another bit of temporary ugliness for bug 4472
                }
            } elsif ($this->_peek_readahead =~ /^<!--(?:(?!-->)$re_directive*.)*-->/os) {
                ($kind, $it) = (TmplTokenType::COMMENT, $&);