Re: Pretty printing an XML document

John Dziurlaj <john@turnout.rocks> writes:
> Suppose I want to pretty-print an XML document using XProc. Of course I can use XSLT:

The cheap and cheerful approach is simply to specify the serialization
parameters on your pipeline output:

  <p:output port="result"
            serialization="map{'method': 'xml', 'indent':true()}"/>

(XML Calabash will let you specify defaults in your configuration file.)

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh <ndw@nwalsh.com>
https://norm.tovey-walsh.com/

> Nearly every complex solution to a programming problem that I have
> looked at carefully has turned out to be wrong.--Brent Welch

Received on Friday, 17 January 2025 17:26:23 UTC