Re: An Anchor attribute question:
"Daniel W. Connolly" <connolly@hal.com>
Errors-To: listmaster@www0.cern.ch
Date: Thu, 2 Jun 1994 17:42:43 +0200
Errors-To: listmaster@www0.cern.ch
Message-id: <9406021540.AA17208@ulua.hal.com>
Errors-To: listmaster@www0.cern.ch
Reply-To: connolly@hal.com
Originator: www-talk@info.cern.ch
Sender: www-talk@www0.cern.ch
Precedence: bulk
From: "Daniel W. Connolly" <connolly@hal.com>
To: Multiple recipients of list <www-talk@www0.cern.ch>
Subject: Re: An Anchor attribute question:
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
Content-Type: text/plain; charset="us-ascii"
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0
Mime-Version: 1.0
In message <199406021522.AA19445@oit.gatech.edu>, Michael Mealling writes:
>Daniel W. Connolly said this:
>> Actually, now that I think about it, If you're not going to include
>> a redundant URL, why don't you just write:
>>
>> <A HREF="URN:IANA:IETF:rfc/822"> ...</a>
>>
>> ???
>
>This would work also. I would like to be able to make this distinction
>in HTML though. Simply to keep in the spirit. There also seems to be
>something in HTParse.c that is causing that example URN to be invalid
>since HTParse.c: scan() function makes the assumption (which may be
>a correct one according to the current URL spec) that no other colon
>should exist beyond the first one. This is causing HTParse() to turn
>the above into "URN:rfc/822" by basically looking at the first colon
>READING BACKWARDS.
>
>Is this correct?
Well... it depends on how you want to look at it. The URI working
group's definition of URL is
scheme:anything
The WWW definition of URI (the contents of the HREF attribute) is:
scheme://hostport/dir1/dir2;param=value?search#fragment
where all the parts are optional, but only certain combinations
make sense. (See
http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html
for details)
So any WWW URI is an IETF URL, but the converse isn't true.
HTParse.c assumes you're handing it a URI.
Now if you define the syntax of URN to be:
URN:anything
then any URN is a URL, but it's not a URI.
It would make more sense to me to define the syntax of URNs
such thaty they are also URIs. So in stead of:
HREF="URN:IANA:IETF:rfc/822"
you would write:
HREF="URN://IETF.IANA/rfc/822"
It's just an expedient measure to hasten deployment. The syntaxes
have equivalent expressive power.
Dan