L
Lars Kellogg-Stedman
After reading through the XQL specs, it is my impression that given the
following input:
<container>
<item id="foo">item 1</item>
<item id="bar">item 2</item>
</container>
The following code should work:
$doc = XML:OM:arser->new->parse(...above text...);
$doc->xql("id('foo')");
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:
$doc->xql("//item[\@id='foo']");
Which does work, but I'm curious if (a) I've misunderstood the XQL spec,
or (b) if XML::XQL is broken.
Thanks,
-- Lars
following input:
<container>
<item id="foo">item 1</item>
<item id="bar">item 2</item>
</container>
The following code should work:
$doc = XML:OM:arser->new->parse(...above text...);
$doc->xql("id('foo')");
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:
$doc->xql("//item[\@id='foo']");
Which does work, but I'm curious if (a) I've misunderstood the XQL spec,
or (b) if XML::XQL is broken.
Thanks,
-- Lars