Hi all,

I've just updated from beta 6 to beta 7, and I'm starting to regret it !

It looks like the way namespaces are managed has been changed. In beta 6,
the expression "ipo:purchaseOrder/@orderDate" with <xform:instance> as the
context node did find a result. In beta 7, the very same expression returns
null.

Here is an extract from my xml document :

<?xml version="1.0" encoding="iso-8859-1"?>
<html xmlns:xform="http://www.w3.org/2001/08/xforms";
        xmlns:ipo="http://www.example.com/IPO";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.example.com/IPO ipoXSD.xsd">
<head>
<xform:xform>
 <xform:bindings>
     <xform:bind ref="ipo:purchaseOrder/@orderDate" id="bind1"
readOnly="true()" calculate="substring(now(),1,10)"/>
 </xform:bindings>
 <xform:instance> <!-- context node -->
  <ipo:purchaseOrder orderDate="1999-12-01">
      <ipo:shipTo exportCode="1" xsi:type="ipo:UKAddress">
          <ipo:name>Helen Zoe</ipo:name>
          <ipo:street>47 Eden Street</ipo:street>
          <ipo:city>Cambridge</ipo:city>
          <ipo:postcode>CB1 1JR</ipo:postcode>
      </ipo:shipTo>
<......>


Is this behaviour expected ? If so, what should I change in my xpath/xml to
make it work ?

Thanks in advance,

Jérôme Nègre


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

Reply via email to