You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Andrei Smirnov <as...@hotjobs.com> on 2000/10/20 04:58:55 UTC

Possible bug in StylesheetExecutionContextDefault.cpp (fwd)

hi

place where i think might be the problem:

const XObject*
StylesheetExecutionContextDefault::getVariable(const QName&
name) const
{
	const XObject* const	theVariable =
		m_variablesStack.getVariable(name);

	return
m_xpathExecutionContextDefault.getXObjectFactory().clone(*theVariable);
}

i just got core dump when i made a typo and refer to nonexitant
xsl variable in key expression like this:

<xsl:variable name="ind" select="aaa"/>
....
<xsl:value-of select="key('industry', $name)"/>

core dump shows that theVariable is NULL in method above.

my platform is solaris-gcc-2.95.2

andrei