Subject: Re: [xsl] How to incrementally add to a result document? From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 28 Jun 2024 22:13:53 -0000 |
Roger, Yes, what Martin said. If you don't like separate modes because you want your tracing logic coupled closely to your transformation logic, the classic 'XSLT approach' would be to build a unified tree in one pass, then post-process that tree twice, once for main outputs (filtering out the logs) and a separate time for the trace log (filtering everything else). Indeed you might find with the second pass to extract the trace log, you can also enhance it usefully. More generally, to make XSLT work you need to adopt a 'pipelining' mentality, by which I mean an idea of separate discrete steps achieving discrete aims, working in combination - for example in this case, generating the logged information is actually separate from writing it to a file. Good luck, Wendell On Fri, Jun 28, 2024 at 5:44b/PM Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On 28/06/2024 23:39, Roger L Costello costello@xxxxxxxxx wrote: > > Is there anyway that I can achieve what I desire -- output to one > document the result of mapping the old form to the new form and output > to another document metadata that describes the mapping steps that were > taken? Or is this outside the realm of XSLT's capabilities? > > > I would consider processing the nodes/elements twice in different modes > where one mode creates the primary result and the other one the > xsl:result-document. > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/174322> (by > email <>) > -- ...Wendell Piez... ...wendell -at- nist -dot- gov... ...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org... ...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to incrementally add , Martin Honnen martin | Thread | Re: [xsl] How to incrementally add , Paul Tyson phtyson@x |
Re: [xsl] How to incrementally add , Martin Honnen martin | Date | Re: [xsl] How to incrementally add , Dimitre Novatchev dn |
Month |