There are attributes in the PAGE XML page content schema that point to file names of images, notably pc:Page/@imageFilename and pc:AlternativeImage/@filename. When these paths are relative, tools like PAGE Viewer and Aletheia currently resolve them relative to the PAGE document. This only works if the referenced images are actually stored there. If tools could be configured to resolve relative paths relative to a different directory in the file system, image and document storage could be decoupled.
Proposal
Tools working with PAGE XML should have the concept of resolve-dir, the base folder to resolve relative filenames. By default resolve-dir is the directory containing the PAGE XML document, if it is stored locally, otherwise /.
Simplest user interface would be a command line flag --resolve-dir:
Rationale
There are attributes in the PAGE XML page content schema that point to file names of images, notably
pc:Page/@imageFilename
andpc:AlternativeImage/@filename
. When these paths are relative, tools like PAGE Viewer and Aletheia currently resolve them relative to the PAGE document. This only works if the referenced images are actually stored there. If tools could be configured to resolve relative paths relative to a different directory in the file system, image and document storage could be decoupled.Proposal
Tools working with PAGE XML should have the concept of
resolve-dir
, the base folder to resolve relative filenames. By defaultresolve-dir
is the directory containing the PAGE XML document, if it is stored locally, otherwise/
.Simplest user interface would be a command line flag
--resolve-dir
: