[bdbxml] fn:id() problem

Tobias <[email protected]> Wed, 10 May 2006 17:35:27 +0200
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
Hi,

I use PHP and have a problem with the fn:id() function. I always get the
error message "undefined context item in fn:id [err:F0N0001]". The same
query executes well in Altova XMLSpy, so I am confused.

My code looks something like this:
<root>
   <child id="someid">
	<subchild />
   </child>
   <child id="someotherid">
	<subchild />
   </child>
</root>

$manager = newXmlManager();
$container = $manager->openContainer("container.dbxml");

$results = $manager->query(
"for \$x in collection('container.dbxml')//root
return fn:id('someid')");

What is wrong? Other XQueries work well, but not fn:id()...

Thank you,
  Tobias Neumann


------------------------------------------
To remove yourself from this list, send an
email to [email protected]