- From: <list.mu@c-moria.com>
- Date: Thu, 27 Jan 2022 17:47:27 +0100
- To: <xproc-dev@w3.org>
- Message-ID: <027c01d8139d$92762880$b7627980$@c-moria.com>
All, I might be overlooking the obvious. In my pipeline, I have static option debug <p:option name="debug" select="false()" as="xs:boolean" static="true"/> Which I set to false() for production, but true() from the command line when working on my code I have quite a few constructs like this one <p:store href="{$output-path}01-sheet.xml" use-when="$debug"> <p:with-option name="serialization" select="map{'indent' : true()}"/> </p:store> This works really well, allowing me to create a whole bunch of intermediate dumps on debug I am cleaning up my code, putting things in different modules in a <p:library . In order to use the static option it seems I need to declare it inside the p:library (so far I had all my custom steps as a declare-step in a single library and the $debug only there) In a scenario where I have imported multiple libraries, all having the same static option for debugging, I can not simply put the option declaration in all library files and in the importing pipeline That would be "shadowing a static option" Is there a way that I can use the same static debug option in multiple imported libraries And as well in the importing pipeline, so that I can still control from the command line in one go? Maybe by overloading the static option on <p:import href="."/> Thanks for your suggestions Geert Bormans
Received on Friday, 28 January 2022 16:11:31 UTC