If there is no output path specified in config.xml at /meta/config/io/outputPath, the fall back should be $repo-base/out/$collectionName$/$current-date-time$. The date-time format should be based on the ISO format, e.g., path/to/repo/persons/2021-11-17T11_33_50_662.
This can be accomplished with the following code:
let $currentDateTime := string(current-dateTime())
let $currentDateTime := functx:substring-before-last($currentDateTime, "-")
let $currentDateTime := replace($currentDateTime, ":|\.", "_")
I think this should be accomplished in the config.xqm module rather than in the transform.xq driver.
If there is no output path specified in config.xml at
/meta/config/io/outputPath
, the fall back should be$repo-base/out/$collectionName$/$current-date-time$
. The date-time format should be based on the ISO format, e.g.,path/to/repo/persons/2021-11-17T11_33_50_662
.This can be accomplished with the following code:
I think this should be accomplished in the config.xqm module rather than in the transform.xq driver.
Also need to add this as documentation.