Hi Latha. Looking at the class hierarchy, it does indeed look as though XNodeSet extends NodeSequence which extends XObject.
XString extends XObject. So for 2.7.1 this casting is never right. Are you
running the Xalan interpreter, or XSLTC? If XSLTC, did you recompile your
stylesheet?
- Brian
Java Girl
<[EMAIL PROTECTED]
> To
[EMAIL PROTECTED]
05/02/2008 02:49 cc
PM Latha Mani <[EMAIL PROTECTED]>
Subject
Fw: XSLT 1.0
Brian - Would you be able to help me with this?
I just upgraded from Xalan 2.4.1 to Xalan 2.7.1. Now I am getting "
java.lang.ClassCastException: org.apache.xpath.objects.XString cannot be
cast to org.apache.xpath.objects.XNodeSet " in the below line - I love the
way the error points to the exact line number of the xslt :)
I tried converting my xslt from
<xsl:for-each select="$grps/Groups/Group">
to
<xsl:for-each select="xalan:node-set($grps/Groups/Group)">
But I still get the same error. Any suggestions?
Thanks,
~Malathi
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
now.
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
now.<<inline: graycol.gif>>
<<inline: pic22584.gif>>
<<inline: ecblank.gif>>
