>
> Hi All,
> I am new to both XML and Xindice, and I apologize if this
> is a stupid/rtfm question. I looked around in faqs and
> archived messages, but couldn't find an answer.
>
> The query I was trying to run was "//name/text()".
> Stand-alone Xalan (2.3.1) works fine for this query, but
> Xindice (1.0) doesn't return anything, though it works fine
> for "//name". I even changed the
> default xalan library in Xindice to the 2.3.1 version, but
> that doesn't help either.
>
> Is this a known bug/problem ? Or am I doing something wrong ?
I'm using query with text() over Perl and XML-RPC an it works well!
Here is part of the code:
use strict;
use Frontier::Client;
my $_collection_name = 'test';
my $node_id = '50';
my $query =
'/[EMAIL PROTECTED]''.$node_id.'\']/parent_node_id/text()';
# Make an object to represent the XML-RPC server.
my $server_url = 'http://localhost:4080';
my $self = Frontier::Client->new(url => $server_url);
my $result = $self->call('db.queryDocument',
"/db/$_collection_name",
'XPath',
$query,
{X => "http://www.xmldb.org/xpath"},
'1.nodeinfo');
my $value = ($result =~ /<result .*?>(\w+)<\/result>/);
print $1;
1;
Daniel