I only get the first chapter element using XalanJ, versions 2.4.1 and 2.5.1. How are you invoking Xalan? What makes you think you're getting both elements? What version of Xalan are you using?
Gary > -----Original Message----- > From: Claudio Tasso [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 08, 2003 2:32 AM > To: [EMAIL PROTECTED] > Subject: comparing numbers and nodesets > > > Hi! > I've a problem with an XPath expression which I can't > understand. This the document: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <doc> > <chapter> > <elem>1</elem> > </chapter> > <chapter> > <elem/> > </chapter> > </doc> > > The following XPath expression selects all the chapter elements: > > /doc/chapter[elem=1] > > I think that the second chapter element should not be > selectd. What happens? > > ________________________________________________ > > dott. Claudio TASSO mail: [EMAIL PROTECTED] > Sviluppatore WEB tel: +39 051 6111458 > > KION Srl web: www.kion.it > Via Cristoni, 86 tel: +39 051 6111411 > 40033 Casalecchio di Reno (BO) fax: +39 051 570423 > ITALIA > ________________________________________________ > >
