Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 8, 2015 · 3 comments
Open

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

GoogleCodeExporter opened this issue Jun 8, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

Are you trying to test the content of the generated result document, or are you 
trying to test the result of the transformation itself?

Original comment by fgeorges on 15 Jul 2013 at 3:57

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I am trying to test the result of the transformation ( which includes result 
documents).

Original comment by hina...@allette.com.au on 17 Jul 2013 at 4:44

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

No branches or pull requests

1 participant