Case A
If an eml doc does contain a distribution tree at the entity level, the first url must contain function="download", or use the default of no function attribute, which defaults to "download".
Whether or not the data file for that entity is uploaded thru the url in the eml doc or manually using the form, that eml doc should fail the checker.
Reason: EML BP says the url for an entity should be data, not information.
Case B
If an eml doc does not contain a distribution tree at the entity level, then there is no url element, and no function attribute.
In this case the data file for that entity would have to be uploaded manually using the form.
And pasta would be filling in the whole distribution tree, not just changing the url.
I do not know if pasta handles this case. I have not run a test doc this way.
To save others from a dead end in this maze, Margaret and I did explore the case of pasta correcting the function attribute in the url element.
However, that would be a change of pattern. Presently pasta does not correct other user errors, even when it could be assumed what the error and fix are.
I suggest we not change that pattern.
Case A
If an eml doc does contain a distribution tree at the entity level, the first url must contain function="download", or use the default of no function attribute, which defaults to "download".
Whether or not the data file for that entity is uploaded thru the url in the eml doc or manually using the form, that eml doc should fail the checker.
Reason: EML BP says the url for an entity should be data, not information.
Case B
If an eml doc does not contain a distribution tree at the entity level, then there is no url element, and no function attribute.
In this case the data file for that entity would have to be uploaded manually using the form.
And pasta would be filling in the whole distribution tree, not just changing the url.
I do not know if pasta handles this case. I have not run a test doc this way.
To save others from a dead end in this maze, Margaret and I did explore the case of pasta correcting the function attribute in the url element.
However, that would be a change of pattern. Presently pasta does not correct other user errors, even when it could be assumed what the error and fix are.
I suggest we not change that pattern.