- From: Piez, Wendell A. (Fed) <wendell.piez@nist.gov>
- Date: Tue, 7 Jan 2025 19:43:20 +0000
- To: XProc Dev <xproc-dev@w3.org>
- Message-ID: <SA9PR09MB582432950A48DAB4454D74A1FF112@SA9PR09MB5824.namprd09.prod.outlook.com>
XProc friends, Using XProc 3.0 I have a pipeline with an output port that looks like this: <p:output port="plaintext" pipe="@pretty" serialization="map{'method': 'text' }" /> When the pipeline is run without a binding, my 'pretty' results are echoed to the console. Running in Morgana XProc III-se, I see a text block. Running in XML Calabash 3 alpha (recent), all the XML tagging comes - tags are not stripped, I see XML. By analogy with method='text' in XSLT I expected the former - the 'text' method delivers only the string value of the document element, with no tagging (or comments or PIs). Is this a bug or lapse in XML Calabash, or the 'text method' support optional in XProc 3? Is this a failure on my part to understand what to expect? Along parallel lines, is there a better way of stripping tagging for final output in XProc than using a serialization method? My experiments show me it is not hard with p:string-replace, but that also seems a little cumbersome (to me). Here is my XProc: https://github.com/wendellpiez/oscal-xproc3/blob/wip-2024jan/testing/PROCESSOR-REPORT.xpl With thanks for any thoughts or relevant info - Wendell
Received on Tuesday, 7 January 2025 19:43:31 UTC