xproc / 3.0-steps

Repository for change requests to the standard step library and for official extension steps
10 stars 7 forks source link

File steps: Inconsistency between p:directory-list and p:file-info #505

Closed xml-project closed 2 years ago

xml-project commented 2 years ago

I think there is an inconsistency between the reported results in p:directory-list and p:file-info when it comes to additional attributes (like executable). In p:directory-list it says:

Any other attributes on c:file, c:directory, or c:other are implementation-defined.

As a consequence, implementers can choose whatever they want. But in p:file-info it says:

Additional implementation-defined attributes may be present, but they must be in a namespace.

My intuition would be to expect, that the step results for a file/folder should be the same for a given file. Additional attribute should be either in namespace or not. I have a slight preference for making them namespaced in both steps.