Project

Profile

Help

Bug #2941

closed

Crash when there is no context item

Added by Michael Kay about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2016-09-15
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
0.9
Fix Committed on JS Branch:
0.9
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Given a stylesheet with

<xsl:template match="/" name="main">

    <xsl:result-document href="#target" method="ixsl:replace-content">

        <ul>

            <xsl:for-each select="//*:test-set">

                <li><a href="testSet.html?src={@file}">{@name}</a></li>

            </xsl:for-each>

        </ul>

    </xsl:result-document>

</xsl:template>

and running it with initialTemplate:main (and no source document), it crashes with

TypeError: null is not an object (evaluating 'context.focus.current')

rather than failing with XPDY0002 as it should.

Please register to edit this issue

Also available in: Atom PDF Tracking page