Aug 18, 2007

Save the transform result in a variable for reuse

<xsl:variable name="orderMarkup">

    <xsl:apply-templates select="/Customer/Order" />

xsl:variable>

 

To reuse the markup

<xsl:template match="/">

    <html>

        <body>

            <xsl:copy-of select="$ordercopy" />

        body>

    html>

xsl:template>