Skip to content

Commit 1c11307

Browse files
committed
enable parameter port on tr:xslt-mode
1 parent 584a083 commit 1c11307

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

xslt-mode/xpl/xslt-mode.xpl

+15-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<p:documentation>see prepend-xml-model.xpl</p:documentation>
5151
</p:input>
5252

53-
<p:input port="parameters" kind="parameter" primary="true"/>
53+
<p:input port="parameters" kind="parameter" primary="true" sequence="true"/>
5454

5555
<p:output port="result" primary="true" sequence="true"/>
5656

@@ -70,7 +70,19 @@
7070
<p:variable name="debug-file-name" select="concat($prefix, '.', replace($mode, ':', '_'))"><p:empty/></p:variable>
7171
<p:variable name="debug-dir-uri1" select="replace($debug-dir-uri, '^(.+)\?.*$', '$1')"><p:empty/></p:variable>
7272

73-
<!-- try wrapper to revover pipelines from errors and proceed with input -->
73+
<!-- try wrapper to recover from errors and proceed with input -->
74+
75+
<p:parameters name="consolidate-params">
76+
<p:input port="parameters">
77+
<p:pipe port="parameters" step="xslt-mode"/>
78+
</p:input>
79+
</p:parameters>
80+
81+
<p:identity>
82+
<p:input port="source">
83+
<p:pipe port="source" step="xslt-mode"/>
84+
</p:input>
85+
</p:identity>
7486

7587
<p:try name="try">
7688
<p:group>
@@ -105,7 +117,7 @@
105117
<p:pipe port="stylesheet" step="xslt-mode"/>
106118
</p:with-option>
107119
<p:input port="parameters">
108-
<p:pipe port="parameters" step="xslt-mode"/>
120+
<p:pipe port="result" step="consolidate-params"/>
109121
</p:input>
110122
<p:input port="stylesheet">
111123
<p:pipe port="stylesheet" step="xslt-mode"/>

0 commit comments

Comments
 (0)