votinginfoproject / vip-specification

The Voting Information Project XML specification.
http://vip-specification.readthedocs.io/en/release/
Other
75 stars 30 forks source link

Consider xs:anyUri type for ExternalFile/FileName #432

Closed JDziurlaj closed 2 years ago

JDziurlaj commented 2 years ago

Consider the use of xs:anyUri so that other URI schemes could be used (e.g. http, ftp, etc.) to resolve external resources.

jswiesner commented 2 years ago

This would be useful to have future flexibility for externally hosted resources. What would a value of ExternalFile/FileName look like for external files embedded within the feed archive (alongside the XML file)? Would it need to include a file:// protocol (e.g. "file://shapefile.zip")?

JDziurlaj commented 2 years ago

I don't believe you'd need to use the file scheme here unless you wanted to be extra explicit. See here.

jswiesner commented 2 years ago

That sounds good. I also think this makes sense since there's a strong precedent in the spec for using xs:anyUri to reference external resources.

WDYT about renaming FileName to FileUri and changing the type from xs:string to xs:anyUri? @afsmythe thoughts? If everyone agrees then we could make this change as part of 6.0.

afsmythe commented 2 years ago

SGTM!

afsmythe commented 2 years ago

PR created https://github.com/votinginfoproject/vip-specification/pull/433

afsmythe commented 2 years ago

Closing..