Hi,

I'm still trying to use relative xpath expressions in Jaxen, and I think
I've found a strange behaviour.

In the following document,  <xform:instance> is the context node :

----begin----

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";
 xmlns:xform="http://www.w3.org/2001/08/xforms";
 xmlns:piz="http://www.pizza.com";>

<head>
<xform:xform>
 <xform:instance>    <-- context node
  <piz:pizza>
   <piz:type>the type</piz:type>
  </piz:pizza>
 </xform:instance>
</xform:xform>

</head>
<!-- lots of things you shouldn't care about ;-) -->
</html>

----end----

If I evaluate the xpath expression "*:pizza/*:type",
JaxenHandler.startNameStep is called in the following order and with the
following parameters :

1/ startNameStep(1, *, pizza)
2/ startNameStep(1, *, type)
The correct node is returned.

If I evaluate "piz:pizza/piz:type", I get :

1/startNameStep(1, piz, type)
And that's all ! Moreover, no node is found.

Is this an expected behaviour ? Souldn't there be a call to startNameStep(1,
piz, pizza) first ?

Thanks in advance,

Jérôme


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to