- From: Norm Tovey-Walsh <ndw@nwalsh.com>
- Date: Mon, 20 Jan 2025 09:29:18 +0000
- To: "Knox, Douglas" <dknox@wustl.edu>
- Cc: "xproc-dev@w3.org" <xproc-dev@w3.org>
"Knox, Douglas" <dknox@wustl.edu> writes: > I'm new to XProc and eager to use it to replace a rather complex shell-script driven sequence of XSLT calls. But I'm having trouble figuring out how to connect to the secondary port of a <p:choose> step. In brief, bindings for ports that aren’t “primary” isn’t automatic. Something like this will do the trick: <p:when test="$doctype='doc_a'"> <p:output port="result" primary="true"/> <p:output port="secondary" sequence="true" pipe="secondary@proca"/> <p:xslt name="proca"> <p:with-input port="stylesheet" href="process_a.xsl"/> </p:xslt> That establishes a binding between the secondary output port of the XSLT step (named proca) and the secondary output port of the p:when. Hope that helps. Be seeing you, norm -- Norm Tovey-Walsh <ndw@nwalsh.com> https://norm.tovey-walsh.com/ > One should never make one's debut with a scandal. One should reserve > that to give interest to one's old age.--Oscar Wilde
Received on Monday, 20 January 2025 09:29:27 UTC