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

Actions #1

Updated by Michael Kay almost 9 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • Applies to branch 9.7 added
Actions #2

Updated by Michael Kay almost 9 years ago

  • Description updated (diff)
Actions #3

Updated by Michael Kay almost 9 years ago

  • Category set to Streaming
  • Status changed from In Progress to Resolved
  • Assignee set to Michael Kay
  • Fix Committed on Branch 9.7 added

A patch has been committed (VariableReferenceAdjunct.java)

Actions #4

Updated by O'Neil Delpratt over 8 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.7.0.4 added

Bug fix applied in the Saxon 9.7.0.4 maintenance release.

Please register to edit this issue

Also available in: Atom PDF