W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2002

Re: URI Or Not?

From: Christian Geuer-Pollmann <geuer-pollmann@nue.et-inf.uni-siegen.de>
Date: Fri, 17 May 2002 12:31:53 +0200
To: tony@vordel.com, w3c-ietf-xmldsig@w3.org
Message-ID: <17837769.1021638713@crypto>
>   The value of the URI attribute contained in the Reference element in
> Manoj's example is "logo-text.gif". Should this not be prepended with
> "file://" to give URI="file://logo-text.gif" to make it a valid URI?

No, no need to.

file://logo-text.gif is an ABSOLUTE URL.

logo-text.gif is a RELATIVE URL and refers to the same directory in which 
the file resides which carries the XML Signature. For instance, if the 
signature file is in

http://www.vordel.com/~tony/mySignature.xml

, the URI="logo-text.gif" refers to the entity (file)

http://www.vordel.com/~tony/logo-text.gif

. If the signature is in a file on URL

file://C|/My Documents/Tony/mySignature.xml

, the relative URI refers to

file://C|/My Documents/Tony/logo-text.gif

. The advantage of a relative URI for a detached signature is that you can 
move around signature and signed contents from your local file system to a 
web server or whatever, the signature remains valid (as long as the target 
system supports the concept of what-is-a-directory and 
how-to-resolve-relative-URLs.


Christian
Received on Friday, 17 May 2002 06:27:00 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:15 GMT