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

Resolving IRIs for resource documents in SVG Tiny 1.2

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 13 May 2008 16:04:18 -0700
Message-ID: <11e306600805131604w1066b09dy55b61ad68c6c9174@mail.gmail.com>
To: www-svg <www-svg@w3.org>
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<http://www.w3.org/TR/SVGMobile12/intro.html#TermIRIReference>after resolving relative IRIs into absolute
> IRI <http://www.w3.org/TR/SVGMobile12/intro.html#TermIRIReference>s and
> after taking into account HTTP redirects (i.e., use the post-redirect IRI<http://www.w3.org/TR/SVGMobile12/intro.html#TermIRIReference>instead of the original source
> IRI <http://www.w3.org/TR/SVGMobile12/intro.html#TermIRIReference>).
>

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?

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Tuesday, 13 May 2008 23:04:54 GMT

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