[4suite] Xpath expression ?
Uche Ogbuji
uche.ogbuji at fourthought.com
Wed Sep 13 02:36:25 MDT 2000
Mike Olson wrote:
>
> Sebastien PIERRE wrote:
> >
> > Hi all!
> >
> > Is the following expression an XPath expression ? :
> > | *[(name()!='Introduction')and(name()!='Abstract')]
> > is it valid to do that :
> > | *[name()!=('Introduction' and 'Abstract')]
>
> The second case is not valid.
> >
> > It is supposed to get every child node of the current node, except the
> > ones named "Introduction" and "Abstract".
>
> The first case doesn't parse correctly. It's a known problems.
> According to the spec and() is a legal function name and our parser
> sometimes gets confused. If you remove the parentehesis around the last
> statement it parses correctly.
>
> *[(name()!='Introduction') and name()!='Abstract']
Again to note, this bug has been fixed in the upcoming release.
--
Uche Ogbuji Principal Consultant
uche.ogbuji at fourthought.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python
More information about the 4suite
mailing list