- From: Knox, Douglas <dknox@wustl.edu>
- Date: Mon, 20 Jan 2025 14:54:25 +0000
- To: Norm Tovey-Walsh <ndw@nwalsh.com>
- CC: "xproc-dev@w3.org" <xproc-dev@w3.org>
- Message-ID: <CH0PR02MB819666DDE8CCCD00A5031D26BFE72@CH0PR02MB8196.namprd02.prod.outlook.com>
Thanks, Norm, that helps a lot! It works as expected, and I think I now understand the pipe model a bit better—pipes all the way down, inside as well as outside of the branches of the p:choose container. Thank you! Doug ________________________________ From: Norm Tovey-Walsh <ndw@nwalsh.com> Sent: Monday, January 20, 2025 3:29 AM To: Knox, Douglas <dknox@wustl.edu> Cc: xproc-dev@w3.org <xproc-dev@w3.org> Subject: Re: How to connect to secondary ports out of p:choose? "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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnorm.tovey-walsh.com%2F&data=05%7C02%7Cdknox%40wustl.edu%7C498c3f8603444c9dee7a08dd3934edc8%7C4ccca3b571cd4e6d974b4d9beb96c6d6%7C0%7C0%7C638729621670699909%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Ey%2Fm6s%2FOPFtZXMGsPSJumaljcBsKwzUiuZ4LpetD8i0%3D&reserved=0<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 14:54:33 UTC