W3C home > Mailing lists > Public > www-svg@w3.org > May 2008

Re: Resolving IRIs for resource documents in SVG Tiny 1.2

From: Maciej Stachowiak <mjs@apple.com>
Date: Fri, 16 May 2008 01:58:30 -0700
Cc: www-svg <www-svg@w3.org>
Message-Id: <71274B05-E64C-4C87-ADD0-C17CB3BAE74C@apple.com>
To: Cameron McCormack <cam@mcc.id.au>


On May 16, 2008, at 12:11 AM, Cameron McCormack wrote:

>
> Robert O'Callahan:
>> http://www.w3.org/TR/SVGMobile12/linking.html#externalReferences  
>> says:
>>
>>> The rule for SVG is that documents are considered to be unique based
>>> on string comparisons of the full IRI after resolving relative IRIs
>>> into absolute IRIs and after taking into account HTTP redirects
>>> (i.e., use the post-redirect IRI instead of the original source
>>> IRI).
>>>
>>
>> This seems to imply that if I have a document that contains many  
>> resource
>> references with the same relative URI, I have to perform an HTTP  
>> transaction
>> for each one to see if any of them result in a redirect. Wouldn't  
>> it make a
>> lot more sense to use the pre-redirect URI as the dictionary key,  
>> so I can
>> avoid a lot of network transactions?
>
> That does make sense, IMO.  I donít know that thereís any real use  
> case
> for using the post-redirect URI as the thing to check against.

I agree with Robert's proposed change as well. In practice, other  
kinds of resource references (images, scripts, stylesheets) are shared  
based on pre-redirect URI in browser-hosted implementations, and it  
would make sense to handle external document references the same way.

Regards,
Maciej
Received on Friday, 16 May 2008 08:59:10 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:39 GMT