tr:store-debug store-debug
xproc-util/store-debug/xpl/store-debug.xpl
Import URI: http://transpect.io/xproc-util/store-debug/xpl/store-debug.xpl
Input Ports
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅⓈ |
Options
Name | Documentation | Default |
---|---|---|
active | 'no' | |
pipeline-stepⓇ | ||
default-uri | resolve-uri('debug') | |
base-uri | '' | |
extension | 'xml' | |
indent | 'true' |
Subpipeline
Step | Inputs | Outputs | Options | |||||
---|---|---|---|---|---|---|---|---|
p:choose d62e11 | ||||||||
$active = 'yes' | ||||||||
p:for-each source-iteration | ||||||||
p:variable href | if ($base-uri != '') then concat($base-uri, '/', $pipeline-step, '.', $extension) else concat($default-uri, '/', $pipeline-step, '.', $extension) | |||||||
p:try d62e19 | ||||||||
p:group d62e23 | ||||||||
p:store d62e25 |
| result | omit-xml-declaration = 'false' indent = $indent href = $href method = if (matches($extension, 'html')) then 'xhtml' else 'xml' | |||||
p:catch catch | error | |||||||
cx:message d62e39 |
| result | message = '[WARNING] store-debug failed: Cannot store to the specified location: ', $href | |||||
p:add-attribute d62e44 | result | attribute-name = 'store-debug-href' match = '/c:errors/c:error[1]' attribute-value = $href | ||||||
p:store d62e54 | result | omit-xml-declaration = 'false' indent = $indent href = if ($base-uri != '') then concat($base-uri, '/store-debug/store-debug-error.xml') else concat($default-uri, '/store-debug/store-debug-error.xml') | ||||||
p:identity d62e64 |
| result | ||||||
p:otherwise | ||||||||
p:identity d62e75 |
| result |