You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Malia Zaheer <mz...@technicacorp.com> on 2002/05/20 16:45:30 UTC

Programmer's assertion error

I get this error when I try to use XPathAPI.getNodeIterator method:

java.lang.RuntimeException: Programmer's assertion in getNextStepPos:
unknown stepType: -1

The code snippet is:

          NodeIterator ni = XPathAPI.selectNodeIterator(root,
"//xsl:for-each[@select =='"+ xp +"']");     

root contains the root element of xsl stylesheet.  I know the error is cause
by this line of code through testing.  I would appreciate any help in
figuring out why I am getting this error.

Thanks,
Malia