Project

Profile

Help

Bug #2629

closed

java.lang.IllegalStateException: getPosture() called when streamability has not yet been computed

Added by Michael Kay almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Streaming
Sprint/Milestone:
-
Start date:
2016-02-19
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7
Fixed in Maintenance Release:
Platforms:

Description

Raised in the help forum by Martin Honnen.

See https://saxonica.plan.io/boards/3/topics/6271

The essence of the problem is this code:

   @<xsl:variable name="product-type" as="xs:string" select="."/>

        <xsl:result-document href="{$product-type}-result.xml">

            <root>

                <xsl:stream href="{$input-uri}">

                    <xsl:for-each select="*/product[@type = $product-type]">

                        <xsl:copy-of select="."/>

                    </xsl:for-each>

                </xsl:stream>

            </root>

        </xsl:result-document>@

where Saxon is trying to determine the streamability of the variable $product-type by referencing the streamability of the corresponding variable declaration, which has not been assessed because it does not appear in streamable code.

Added to XSLT3 test suite as stream-210.xsl

Please register to edit this issue

Also available in: Atom PDF