xproc / 3.0-steps

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

Better specification for filename regexp use #378

Closed xatapult closed 4 years ago

xatapult commented 4 years ago

As @gimsieke noted in #364, the usage of regexps in filename matching is under-specified:

  1. Make sure that is is clear everywhere that the regular expression is not anchored.
    • p:directory-list
    • p:unarchive
  2. There is no error specified in the spec for when the regexp is invalid. Do we need to add a specific error code for that?

I stated in #364 that the matching can be described as using the XPath matches#2() function (as in matches(path-to-match, regexp)). Is that correct? If so, maybe we can describe it as such in the spec?

xatapult commented 4 years ago

Consensus that this is correct and should be done