When I try it the /bookstore/book[price>35.00]/title I get the error Conversion from node set to number not possible. The error is the same whether I use a // or a / .
> Are we using the same version? Marco's notes refer to updates made in FPC 2.4.1 and I am using 2.2.4 with Lazarus 0.9.28 On 2 May 2010 21:30, Lee Jenkins <l...@datatrakpos.com> wrote: > Frank Church wrote: > >> I have run it with some success. >> >> What I find missing now is the ability to give the correct output for a an >> index value, such as //bookstore/book[1]/title. It works on the w3schools >> version but not in the FPC one. >> >> > Try changing to only using one front slash instead of two: > > /bookstore/book[price>35.00]/title > > ^--- One slash > > If I'm not mistaken, // means from current node, search. / means the > entire document. Not sure what you're intent is with the example so that > may be exactly what you're trying to do. > > > -- > Warm Regards, > > Lee > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- Frank Church ======================= http://devblog.brahmancreations.com
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal