When I try it the /bookstore/book[price>35.00]/title I get the error<br><br>Conversion from node set to number not possible. The error is the same whether I use a // or a / .<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
</blockquote><br>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<br><br><div class="gmail_quote">On 2 May 2010 21:30, Lee Jenkins <span dir="ltr"><<a href="mailto:lee@datatrakpos.com">lee@datatrakpos.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Frank Church wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have run it with some success.<br>
<br>
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.<br>
<br>
</blockquote>
<br></div>
Try changing to only using one front slash instead of two:<br>
<br>
/bookstore/book[price>35.00]/title<br>
<br>
^--- One slash<br>
<br>
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.<div><div></div><div class="h5">
<br>
<br>
--<br>
Warm Regards,<br>
<br>
Lee<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>