Regarding the assert. My guess is that you have told the documentWrapper not to index the whole document. That is why the nodes in the assertion aren't indexed. Tell the documentWrapper to buildWrapper and buildMap in the constructor.
/ Erik > -----Original Message----- > From: Jaspreet Singh [mailto:[EMAIL PROTECTED] > Sent: den 28 oktober 2003 14:27 > To: [email protected] > Subject: xpath evaluation using xalan > > Hi All > > I am trying to evaluate an xpath expression using xalan. i'm using the > xpathwrapper sample for this. i have a few questions - > > it seems that the parserLiason, envSupport, constructionContext, > documentWrapper, wrapperNavigator, and all other classes that are used as > glue code should be "live" when we access the return value (xobject). if > these objects are destroyed, the xobject return value is invalidated. > if i return the xobject to some other class and the above mentioned > objects > are destroyed, i am unable to access the return value. so i've declared > these as static. is this the way to use the lib? > > i get a lot of asserts while evaluating some expressions. the assertion > looks like "node1.isIndexed() == true && node2.isIndexed() == true". I can > avoid the assertions by modifying the xpath expression. but in some cases > i > just can't get rid of it. could you pls tell me the reason for this > assert? > > > Thanks, > Jaspreet
