gimsieke / xspec

Automatically exported from code.google.com/p/xspec
MIT License
1 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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