Mats Eklund
2014-05-04 20:03:06 UTC
Hi Alain,
Needed a base64 encoding function (to allow to download instance data document via a data URL link), and discovered that XSLTForms' implementation of the digest() xpath function can be used for this!
The function needs fixes on lines 6089 and 6090 in xsltforms.js: "l2" => "l2b".
Suggestion: The special BASE64 hashing algorithm could be specified as "xsltforms:BASE64" to be in compliance with the XForms spec.
Thanks for sharing your great XForms implementation!
Kind regards,
Mats
Needed a base64 encoding function (to allow to download instance data document via a data URL link), and discovered that XSLTForms' implementation of the digest() xpath function can be used for this!
The function needs fixes on lines 6089 and 6090 in xsltforms.js: "l2" => "l2b".
Suggestion: The special BASE64 hashing algorithm could be specified as "xsltforms:BASE64" to be in compliance with the XForms spec.
Thanks for sharing your great XForms implementation!
Kind regards,
Mats