Subject: Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code|
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 23 May 2022 19:29:21 -0000
Martin, I would suggest a slight change to your code:
... rather than:
... and when the heavy-lifting code is not being imported, then put a priority="1000" on the suggested match.
That will allow Wolfhart's stylesheet also to support a template rule for the root node.
Agreed, that is a better way, should have thought about it probably as it is an easy way in XSLT 2 and 3.