Re: Default Attributes and XSD

Graydon <[email protected]> Thu, 11 Mar 2021 11:26:21 -0500
Newsgroups gmane.text.xml.saxon.help
Message-ID <YEpErYDfkba0Q8xx@menja>
On Thu, Mar 11, 2021 at 05:18:19PM +0100, Marko Hedler scripsit:
> Thanks for your response,
> we have one limitation: (only one single Transformation is allowed.
> Tried to use fn:tranform() to do the 2-step solution: works, but the
> performance ist too low.

The old-fashioned two-step processing pattern would be

<xsl:variable name="step1">
  <xsl:apply-templates mode="step1"/>
</xsl:variable>

<xsl:apply-templates select="$step1"/>

In my experience, Saxon does this efficiently.

(Though it's also been my experience that transform() is fast.)

-- 
Graydon Saunders  | [email protected]
Þæs oferéode, ðisses swá mæg.
-- Deor  ("That passed, so may this.")