|Version:||0.7.0 - 6 October 2012|
This generator returns a file specified
path parameter from the PSML root folder.
This is the most generic generator to retrieve PSML data. For convenience, two similar generators are provided:
- Generator: GetContentFile to retrieve files in the
- Generator: GetConfigFile to retrieve files in the
The root of the PSML folder can be configured using the global property "
bastille.psml.root" which can be either a absolute path or a relative path from the global repository. By default, the PSML root is set to "
<bastille> <psml root="psml"/> </bastille>
This generator requires a
path parameter. The path parameter must be a relative path from within the PSML root folder to a PSML file without the extension.
If the path resolves to a location outside the PSML folder, this generator will not read the file.
Like most PSML generators returning a PSML file, this generator will wrap the content of the file with the
@base attribute is the relative path from the PSML root to the folder, since references (xrefs and image sources) in PSML are relative, this attribute can be used to construct the path to images or cross-referenced documents.
<psml-file name="[file name]" base="[base path]" status="[status]"> <!-- PSML content --> <psml-file>
If the file cannot be found or read, this generator will return the following:
<psml-file name="[file name]" base="[base path]" status="not-found"> Unable to find file: [path] </psml-file>
The status of this generator will be set to 'NOT_FOUND'.
Created on , last edited on