- From: Piez, Wendell A. (Fed) <wendell.piez@nist.gov>
- Date: Wed, 8 Jan 2025 18:22:47 +0000
- To: Norm Tovey-Walsh <ndw@nwalsh.com>
- CC: XProc Dev <xproc-dev@w3.org>
Norm, You'll be glad to know after some upgrades and cleanup, my problem serializing with method 'text' in XML Calabash 3 has mysteriously disappeared. This suggests I was doing something wrong, but if the problem reappears I'll ask again. Thanks! Wendell -----Original Message----- From: Norm Tovey-Walsh <ndw@nwalsh.com> Sent: Wednesday, January 8, 2025 3:27 AM To: Piez, Wendell A. (Fed) <wendell.piez@nist.gov> Cc: XProc Dev <xproc-dev@w3.org> Subject: Re: Serialization methods on output ports "Piez, Wendell A. (Fed)" <wendell.piez@nist.gov> writes: > Using XProc 3.0 I have a pipeline with an output port that looks like this: [...] > 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. That'd be a straight-up bug. But my quick attempt to reproduce it was unsuccessful: <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0"> <p:output port="result" serialization="map{'method': 'text' }" /> <p:identity> <p:with-input> <hi>Hello</hi> </p:with-input> </p:identity> </p:declare-step> Produces "Hello" on the console without any markup. If you can construct a simple test case, please open up an issue, https://github.com/xmlcalabash/xmlcalabash3/issues > Along parallel lines, is there a better way of stripping tagging for final output in XProc than using a serialization method? If you want the intermediate text result, p:cast-content-type should do what you want. When I try your pipeline, it seems to produce text: $ app/build/stage/xmlcalabash.sh /tmp/out.xpl [PROCESSOR-REPORT] XPROC 3 Processor Report === basic :: 1 :: file:/tmp/out.xpl ==================================== <PROCESSOR reporting="2025-01-08T08:24:53.893701Z"> <product-name>XML Calabash</product-name> <product-version>3.0.0-alpha14-SNAPSHOT</product-version> <vendor>Norm Tovey-Walsh</vendor> <vendor-uri>https://xmlcalabash.com/</vendor-uri> <version>3.0 3.1</version> <xpath-version>3.1</xpath-version> <psvi-supported>false</psvi-supported> </PROCESSOR> ======================================================================== === plaintext :: 1 :: file:/tmp/out.xpl ================================ product-name: XML Calabash product-version: 3.0.0-alpha14-SNAPSHOT vendor: Norm Tovey-Walsh vendor-uri: https://xmlcalabash.com/ version: 3.0 3.1 xpath-version: 3.1 psvi-supported: false report-time: REPORTING AT 08:24 a.m. on Wednesday January 8th, 2025 ======================================================================== Be seeing you, norm -- Norm Tovey-Walsh <ndw@nwalsh.com> https://norm.tovey-walsh.com/ > They say I have A.D.D., but they just don't understand. Oh, look! A > chicken!
Received on Wednesday, 8 January 2025 18:22:53 UTC