transpect:paths paths

pubcoach/xpl/paths.xpl

Import URI: http://transpect.le-tex.de/book-conversion/converter/xpl/paths.xpl

Visualisation

The pre-creation of this SVG image needs the Graphviz software installed. Please inform your project maintainer.

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.

Output Ports

NameDocumentationConnections

result

report

Options

NameDocumentationDefault

debug

'no'

debug-dir-uri

resolve-uri('debug')

interface-language

'en'

clades

''

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:variable status-dir-uri

concat($debug-dir-uri, '/status')

p:group try

p:choose svn-info

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

p:exec d120e68

source

p:empty

result

command = 'env'

args = 'svn info --xml'

p:filter d120e76

source

result on d120e68

result

select = '/c:result/info'

p:otherwise

p:identity d120e83

source

 <info/>

result

transpect:file-uri file-uri

source

result

filename = $file

p:sink d120e101

source

result on file-uri

p:xslt xslt

The stylesheet provides one essential customization point: transpect: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 transpect: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

p:empty

result

p:for-each d120e163

secondary on xslt

letex:store-debug d120e170

source

current on d120e163

result

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

active = $debug

base-uri = $debug-dir-uri

p:sink d120e180

source

letex:store-debug d120e182

source

result

pipeline-step = 'paths'

active = $debug

base-uri = $debug-dir-uri

p:sink d120e188

source

result on d120e182