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

NameDocumentationConnections

source

Output Ports

NameDocumentationConnections

result

Options

NameDocumentationDefault

active

'no'

pipeline-step

default-uri

resolve-uri('debug')

base-uri

''

extension

'xml'

indent

'true'

Subpipeline

StepInputsOutputsOptions

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

source

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

source

result

message = '[WARNING] store-debug failed: Cannot store to the specified location: ', $href

p:add-attribute d62e44

source

error on catch

result

attribute-name = 'store-debug-href'

match = '/c:errors/c:error[1]'

attribute-value = $href

p:store d62e54

source

result on d62e44

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

source

source on store-debug

result

p:otherwise

p:identity d62e75

source

result