Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

result-documents inside of a template cause an error #58

Open

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. I have the following template( simplified..)
<xsl:template match="w:body" mode="content">
    <xsl:for-each-group select="*" group-starting-with="w:p">
        <xsl:result-document href="$_outputfolder">
            </xsl:apply-templates>
        </xsl:result-document>
    </xsl:for-each-group>
</xsl:template>
2.
I have a scenario that tests the output of this template and the following 
error is generated:
XTDE1480: Cannot switch to a final result destination while writing a temporary 
tree
     [java]   at xsl:apply-templates (...)
     [java]      processing /w:document/w:body[1]
     [java]   in built-in template rule
     [java]   at xsl:apply-templates (file:/E:/xspec.xsl#208)
     [java]      processing /
     [java]   at xsl:apply-templates (file:/E:/xspec.xsl#208)
     [java]      processing /
     [java]   at xsl:call-template name="x:d4e30" (file:/E:/xspec.xsl#49)
3.

What is the expected output? What do you see instead?
The final tree is not terminated, so there is no result 

What version of the product are you using? On what operating system?
using 0.4.0rc1

Please provide any additional information below.

Original issue reported on code.google.com by hina...@allette.com.au on 15 Jul 2013 at 12:43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions