tr:xslt-mode xslt-mode
xproc-util/xslt-mode/xpl/xslt-mode.xpl
Import URI: http://transpect.io/xproc-util/xslt-mode/xpl/xslt-mode.xpl
Input Ports
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅⓈ | ||
secondaryⓈ |
Options
Name | Documentation | Default |
---|---|---|
modeⓇ | Please be aware that, as per the spec, the initial mode option of p:xslt must be a QName. You cannot invoke the #default mode here. And if you’re using namespace-prefixed modes, you’ll have to declare the namespaces here in this .xpl file. This is admittedly unfortunate. | |
prefix | '' | |
msg | 'no' | |
debug | 'no' | |
debug-dir-uriⓇ | ||
status-dir-uri | concat($debug-dir-uri, '/status') | |
hub-version | '' |
Subpipeline
Step | Inputs | Outputs | Options | ||||
---|---|---|---|---|---|---|---|
p:variable debug-file-name | concat($prefix, '.', replace($mode, ':', '_')) | ||||||
p:try try | |||||||
p:group d59e37 | |||||||
p:choose d59e48 | |||||||
$msg = 'yes' | |||||||
cx:message d59e55 |
| result | message = concat('Mode: ', $mode, if ($prefix and $debug = 'yes') then concat(' debugs into ', $debug-dir-uri, '/', replace($debug-file-name, '//+', '/'), '.xml') else '' ) | ||||
p:otherwise | |||||||
p:identity d59e64 |
| result | |||||
p:xslt xslt |
| result | initial-mode = $mode | ||||
p:sink d59e90 | |||||||
p:for-each d59e92 | |||||||
p:store d59e99 | result | indent = 'true' omit-xml-declaration = 'false' href = base-uri() | |||||
tr:prepend-xml-model d59e105 | result | hub-version = $hub-version | |||||
tr:store-debug d59e120 | result | pipeline-step = $debug-file-name active = $debug base-uri = $debug-dir-uri | |||||
p:catch catch | error | ||||||
tr:propagate-caught-error forward-error | result | fail-on-error = 'no' rule-family = 'Internal' code = $mode severity = 'fatal-error' msg-file = concat($mode, '.error.txt') status-dir-uri = $status-dir-uri | |||||
tr:store-debug d59e163 |
| result | pipeline-step = concat($debug-file-name, '.ERROR') active = $debug base-uri = $debug-dir-uri | ||||
cx:message d59e173 | result | message = concat('[FATAL ERROR]: Mode ', $mode, ' failed due to conversion errors. Recovering from errors and proceeding with original input. ', if ($prefix and $debug = 'yes') then concat(' Please see ', $debug-dir-uri, '/', replace($debug-file-name, '//+', '/'), '.ERROR.xml for detailed debugging information.') else '' ) | |||||
p:sink d59e178 |