- From: Piez, Wendell A. (Fed) <wendell.piez@nist.gov>
- Date: Wed, 8 Jan 2025 19:07:04 +0000
- To: XProc Dev <xproc-dev@w3.org>
Hello again, Investigating simple ways to strip tagging, from Erik's site (XProcRef.org) I learn to do this: <p:set-properties properties="map{'serialization': map{ 'method': 'text' } }"/> <p:cast-content-type content-type="text/plain"/> This returns only the string value of the XML document, no tags. But I haven't figured out how to use p:cast-content-type/@parameters although the option 'parameters' is defined to take a map (and do what an implementation says). Any hints or examples? FWIW, without touching the serialization property, one can also do <p:string-replace match="/*" replace="string(.)"/> ... no? (the processor figures out this is text/plain) Thanks for any insight or tips! Wendell -----Original Message----- From: Piez, Wendell A. (Fed) <wendell.piez@nist.gov> Sent: Wednesday, January 8, 2025 11:06 AM To: Norm Tovey-Walsh <ndw@nwalsh.com> Cc: XProc Dev <xproc-dev@w3.org> Subject: RE: Serialization methods on output ports Gotcha, thanks! Will look further. Cheers, Wendell -----Original Message----- From: Norm Tovey-Walsh <ndw@nwalsh.com> Sent: Wednesday, January 8, 2025 11:00 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: > Won't cast-content-type give me the tags as well, only as a string (as document content), as twere? Not if you specify the text method in the parameters. (I'm not arguing that it's an improvement over setting the serialization parameters on the output port, just observing that it would let you process that text output in the pipeline, if that's something you wanted to do.) Be seeing you, norm -- Norm Tovey-Walsh <ndw@nwalsh.com> https://norm.tovey-walsh.com/ > It is not necessary to change. Survival is not mandatory.--W. Edwards > Deming
Received on Wednesday, 8 January 2025 19:07:11 UTC