|
Posted by Michael Winter on 05/31/06 15:15
On 31/05/2006 14:57, Stewart Gordon wrote:
[snip]
> <!DOCTYPE HTML SYSTEM"http://eb.cx/2ef"><title//.
^^
The SGML grammar requires at least one white space character between the
'SYSTEM' literal (or public identifier) and the system identifier, so I
don't think that quite qualifies. :-P
[73] external identifier (10.1.6, 379:1) =
( ( "SYSTEM"
| ( "PUBLIC",
+ps [65],
public identifier [74] ) ),
?( +ps [65],
system identifier [75] ) )
-- #73 External Identifier, SGML Productions[1]
> Now try and beat that!
As far as I know, the system identifier is a URI reference so a relative
reference (such as a single letter) is permissible, but I could very
well be wrong. In the previous discussion, Jukka seemed to imply that an
absolute URL was necessary, but that could have been due to a limitation
of the W3C Validator (which was the required validator for the
challenge). It is based loosely upon James Clark's SP which only
supports the http scheme (or so the documentation says[2]).
So, if a relative reference is allowed, surely /the/ shortest has to be:
<!DOCTYPE html SYSTEM "d"><title//. (35 bytes)
?
I can't believe I'm doing this again. *shakes head*
Mike
[1] SGML Productions
<ftp://ftp.ifi.uio.no/pub/SGML/productions>
[2] "System identifiers" in SP
<http://www.jclark.com/sp/sysid.htm>
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Navigation:
[Reply to this message]
|