You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many XProc-Z pipelines consist of nested conditional control structures containing subpipelines. If the subpipelines are written inline, and have their own conditional controls, then indenting can become excessive and overall comprehensibility reduced. One way to deal with this is to declare new pipelines and call them from the subpipelines.
Another way to deal with the issue is to replace the choose/when/otherwise idiom by a custom conditional step which performs a test and, depending on the result, copies its default input sequence to one or other of its output sequences. The subpipelines which were previously children of the when and otherwise become steps at the same level as the choice step, and connected to the appropriate output port of the conditional step. Useful conditional steps might include method matchers (with output ports GET, PUT, POST, etc.), URI pattern matchers (with output ports matched and unmatched), boolean expression evaluators (with ports true and false), etc.
The text was updated successfully, but these errors were encountered:
Many XProc-Z pipelines consist of nested conditional control structures containing subpipelines. If the subpipelines are written inline, and have their own conditional controls, then indenting can become excessive and overall comprehensibility reduced. One way to deal with this is to declare new pipelines and call them from the subpipelines.
Another way to deal with the issue is to replace the
choose
/when
/otherwise
idiom by a custom conditional step which performs a test and, depending on the result, copies its default input sequence to one or other of its output sequences. The subpipelines which were previously children of thewhen
andotherwise
become steps at the same level as the choice step, and connected to the appropriate output port of the conditional step. Useful conditional steps might include method matchers (with output portsGET
,PUT
,POST
, etc.), URI pattern matchers (with output portsmatched
andunmatched
), boolean expression evaluators (with portstrue
andfalse
), etc.The text was updated successfully, but these errors were encountered: