tr:paths paths
cascade/xpl/paths.xpl
Import URI: http://transpect.io/cascade/xpl/paths.xpl
Input Ports
Name | Documentation | Connections |
---|---|---|
conf |
| |
stylesheetⓅ | The default path calculation stylesheet. Most probably you will want to define your own stylesheet for your project. This stylesheet will most probably import the default stylesheet. | |
paramsⓈ | Additional parameters for the path calculation stylesheet can be submitted over this port. |
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | ||
report |
Options
Name | Documentation | Default |
---|---|---|
debug | 'no' | |
debug-dir-uri | 'debug' | |
status-dir-uri | 'status' | |
interface-language | 'en' | |
clades | Optional parameter that expects a space-separated list of clades. Overwrite standard behaviour of parsing file names. | '' |
fileⓇ | ||
pipeline | 'unknown' | |
progress | Whether to display progress information as text files in a certain directory | 'no' |
progress-to-stdout | Whether to write progress information to console | 'no' |
determine-transpect-project-version | Whether an attempt should be made (currently by running svn info --xml ) to determine the svn revision of the transpect project. | 'no' |
Subpipeline
Step | Inputs | Outputs | Options | ||||||
---|---|---|---|---|---|---|---|---|---|
p:try try | |||||||||
p:group d89e64 | |||||||||
p:choose svn-info | |||||||||
$determine-transpect-project-version = 'yes' | |||||||||
p:try d89e85 | |||||||||
p:group d89e87 | |||||||||
p:exec d89e89 |
| result | command = 'env' args = 'svn info --xml' | ||||||
p:filter d89e97 | result | select = '/c:result/info' | |||||||
p:catch d89e100 | error | ||||||||
p:identity d89e102 |
| result | |||||||
p:otherwise | |||||||||
p:identity d89e120 |
| result | |||||||
tr:file-uri file-uri |
| result | filename = $file | ||||||
p:sink d89e138 | |||||||||
p:xslt xslt The stylesheet provides one essential customization point: tr:parse-file-name() that accepts a file uri, typically with an extension and a directory path. It may then analyze this filename, potentially after applying tr:basename() in order to strip paths and the extension. The function produces a sequence of attributes whose names should correspond to clade roles and whose values should correspond to clade names. Another cutomization point is the template named 'main-file-xml'. The stylesheet parameter 'filenames' (xs:string)
will be split at whitespace. It is supposed to output a | result | ||||||||
p:for-each d89e200 | |||||||||
tr:store-debug d89e207 | result | pipeline-step = replace(base-uri(), '^.+/(cascade/.+)\.xml$', '$1') active = $debug base-uri = $debug-dir-uri | |||||||
p:sink d89e217 |
| ||||||||
p:catch catch | error | ||||||||
tr:propagate-caught-error propagate | result | msg-file = 'paths-error.txt' code = 'tr:PATH01' severity = 'warning' status-dir-uri = $status-dir-uri | |||||||
p:sink d89e242 | |||||||||
p:identity empty-params |
| result | |||||||
tr:store-debug d89e256 |
| result | pipeline-step = 'cascade/paths' active = $debug base-uri = $debug-dir-uri | ||||||
p:sink d89e262 |