<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 3: XqueryLite - Error: Undefined index</title><link href="https://sourceforge.net/p/phpxmlclasses/support-requests/3/" rel="alternate"/><link href="https://sourceforge.net/p/phpxmlclasses/support-requests/3/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpxmlclasses/support-requests/3/</id><updated>2003-04-22T09:51:49Z</updated><subtitle>Recent changes to 3: XqueryLite - Error: Undefined index</subtitle><entry><title>XqueryLite - Error: Undefined index</title><link href="https://sourceforge.net/p/phpxmlclasses/support-requests/3/" rel="alternate"/><published>2003-04-22T09:51:49Z</published><updated>2003-04-22T09:51:49Z</updated><author><name>Maik Thiele</name><uri>https://sourceforge.net/u/plumbumsel/</uri></author><id>https://sourceforge.netca2510588049df8bdae40eaef61489307eacd3cc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;I have a problem in using XqueryLite. I tried some &lt;br /&gt;
queries but I got always the message: &lt;/p&gt;
&lt;p&gt;Error: E_NOTICE &lt;br /&gt;
Undefined index: i &lt;br /&gt;
line: 368 &lt;br /&gt;
$data=$this-&amp;amp;gt;bindings[$var_name]; &lt;/p&gt;
&lt;p&gt;For example the query: &lt;/p&gt;
&lt;p&gt;'for $i in xmlmem($bib)/bib/book return &amp;amp;lt;result&amp;amp;gt; {$i/price} &lt;br /&gt;
&amp;amp;lt;/result&amp;amp;gt;' &lt;/p&gt;
&lt;p&gt;What I have to do with $i? In the main class is an array &lt;br /&gt;
bindings, but I thought that following lines are enough: &lt;/p&gt;
&lt;p&gt;$xq=new XqueryLite(); &lt;br /&gt;
$xq-&amp;amp;gt;init(); &lt;br /&gt;
$result=$xq-&amp;amp;gt;evaluate_xqueryl($query); &lt;/p&gt;
&lt;p&gt;What else I have to do that it works? &lt;/p&gt;
&lt;p&gt;Many thanks! &lt;br /&gt;
Regards &lt;br /&gt;
Maik Thiele &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>