Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > XQL 'id' function in XML::XQL

Thread Tools

XQL 'id' function in XML::XQL

Lars Kellogg-Stedman
Posts: n/a
After reading through the XQL specs, it is my impression that given the
following input:

<item id="foo">item 1</item>
<item id="bar">item 2</item>

The following code should work:

$doc = XML:OM:arser->new->parse(...above text...);

Whereby "work" I mean it should return a reference to the <item
id="foo"/> node. Instead it always results in 0 matches. I've replaced
it with:


Which does work, but I'm curious if (a) I've misunderstood the XQL spec,
or (b) if XML::XQL is broken.


-- Lars

Lars Kellogg-Stedman <(E-Mail Removed)>
This email address will expire on 2005-11-22.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How override ALL function calls? (Is there a "function call function"?) Python 2 08-01-2005 12:38 PM
Create HTML Form from Schema using xql or xslt? Adam Retter XML 0 02-09-2005 10:39 PM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM
Passing a C++ object's member function to a C function expecing a function pointer! James Vanns C++ 7 01-21-2004 02:39 AM
how to test xql kvs XML 0 09-11-2003 09:14 AM