xproc / Vnext

Assembly point for all issues for a next version of XProc
1 stars 0 forks source link

Add p:file-hash #45

Open JDziurlaj opened 2 years ago

JDziurlaj commented 2 years ago

I need a way to verify the hash of certain documents entering an XProc pipeline. I cannot use p:hash as I need to hash the actual bytes that may vary by encoding (UTF-8, UTF-16, EBCDIC, etc.)

The proposed step would behave like p:load, but in addition, one of the output ports would contain a hashed value of the source. Options would be mainly in line with p:hash.

There might be some desire for hashing to apply to href using URI schemes other than file, making this perhaps a more general facility.