tr:paths paths

cascade/xpl/paths.xpl

Import URI: http://transpect.io/cascade/xpl/paths.xpl

Input Ports

NameDocumentationConnections

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

NameDocumentationConnections

result

report

Options

NameDocumentationDefault

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

StepInputsOutputsOptions

p:try try

p:group d89e64

p:choose svn-info

$determine-transpect-project-version = 'yes'

p:try d89e85

p:group d89e87

p:exec d89e89

source

p:empty

result

command = 'env'

args = 'svn info --xml'

p:filter d89e97

source

result on d89e89

result

select = '/c:result/info'

p:catch d89e100

error

p:identity d89e102

source

 <info/>

result

p:otherwise

p:identity d89e120

source

 <info/>

result

tr:file-uri file-uri

source

result

filename = $file

p:sink d89e138

source

result on file-uri

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 <files> document that contains a <file for-paths="…">…</file> element for each of the individual filenames. The value of the @for-paths attribut is a regular input filename from which a paths document will be calculated. The content of the file element will be concatenated with the s9y1-path of the paths document in order to calculate the expected storage location for the input file.

source

conf on paths

result on svn-info

stylesheet

stylesheet on paths

parameters

params on paths

result

p:for-each d89e200

secondary on xslt

tr:store-debug d89e207

source

current on d89e200

result

pipeline-step = replace(base-uri(), '^.+/(cascade/.+)\.xml$', '$1')

active = $debug

base-uri = $debug-dir-uri

p:sink d89e217

source

p:catch catch

error

tr:propagate-caught-error propagate

source

error on catch

result

msg-file = 'paths-error.txt'

code = 'tr:PATH01'

severity = 'warning'

status-dir-uri = $status-dir-uri

p:sink d89e242

source

result on propagate

p:identity empty-params

source

 <c:param-set/>

result

tr:store-debug d89e256

source

result

pipeline-step = 'cascade/paths'

active = $debug

base-uri = $debug-dir-uri

p:sink d89e262

source

result on d89e256