- 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
> 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 UTC