letex:simple-progress-msg (in library simple-progress-msg.xpl) progress-msg
letex:simple-progress-msg
Description
This step stores status messages as plain text files and prints them to the standard output. The step can be used everywhere in your pipeline. The input will be simply forwarded to the output without any transformations.
Usage
The input port entitled "msgs" expects a c:message
XML document. The status messages must be wrapped in c:message
elements.
For localized messages, you can use multiple c:message
elements each including a xml:lang
attribute. The attribute value must
be a language code according to ISO 639-1.
Example
<letex:simple-progress-msg file="trdemo-paths.txt">
<p:input port="msgs">
<p:inline>
<c:messages>
<c:message xml:lang="en">Generating File Paths</c:message>
<c:message xml:lang="de">Generiere Dateisystempfade</c:message>
</c:messages>
</p:inline>
</p:input>
<p:with-option name="status-dir-uri" select="$status-dir-uri"/>
</letex:simple-progress-msg>
Input Ports
Name | Documentation | Connections |
---|---|---|
sourceⓅⓈ | Input port:
| |
msgs | Input port:
|
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅⓈ | Output port:
|
Options
Name | Documentation | Default |
---|---|---|
file | Option:
| |
status-dir-uri | Option:
| 'status' |
Subpipeline
Step | Inputs | Outputs | Options |
---|---|---|---|
p:variable lang | replace(p:system-property('p:language'), '[-].+$', '') | ||
p:xslt d104e135 |
| result | |
p:store d104e174 | result | method = 'text' href = concat($status-dir-uri, '/', concat(p:system-property('p:episode'), '_', $file)) |