From: Dmitriy S. <sha...@gm...> - 2010-10-15 12:56:46
|
I did this changers and as Wolfgang did say, it was a bug before ... On Fri, Oct 15, 2010 at 5:13 PM, Wolfgang Meier <wol...@ex...>wrote: > Andrzej, > > I tested the following query on saxon and eXist: > > declare namespace dsml="http://www.dsml.org/DSML"; > > declare variable $local:xml := > <dsml:dsml xmlns:dsml="http://www.dsml.org/DSML" > dn="ou=users,o=xxx,dc=xxx,dc=com"> > <dsml:directory-entries> > <dsml:entry dn="uid=ted"> > <dsml:objectclass> > <dsml:oc-value>top</dsml:oc-value> > <dsml:oc-value>person</dsml:oc-value> > <dsml:oc-value>posixAccount</dsml:oc-value> > <dsml:oc-value>ravenUser</dsml:oc-value> > </dsml:objectclass> > <dsml:attr name="sn"> > <dsml:value>Seuss</dsml:value> > </dsml:attr> > <dsml:attr name="userPassword"> > <dsml:value>SHA256xxxxxxxx</dsml:value> > </dsml:attr> > <dsml:attr name="uidNumber"> > <dsml:value>5000</dsml:value> > </dsml:attr> > </dsml:entry> > </dsml:directory-entries> > </dsml:dsml> > ; > > $local:xml//dsml:dsml > > returns the empty sequence, while > > $local:xml/descendant-or-self::dsml:dsml > > returns the dsml root node. This is because // does actually stand for > descendant-or-self::node(). If I remember well, we had a bug in this > area some time ago, but the current behavior seems to be correct. So > either you were relying on this bug or there's something else in your > query which makes it fail. > > Wolfgang > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > -- Dmitriy Shabanov |