Hi,

I am trying out Xindice rc 1.0 and have noticed that two types of XPath
Queries aren't working for me:

1. Applying Predicates to the attributes of document root nodes:

eg:    /[EMAIL PROTECTED]:foo]

returns nothing, whereas quering the root,

ie     /

returns the expected document

<root xmlns:foo="http://bar";>
    ....other nodes
</root>

This kind of predicate works fine on nodes other than the root.

2. Returning just the value of Attribute Nodes

Using attributes as predicates works fine,

eg    //[EMAIL PROTECTED]
or    //[EMAIL PROTECTED]'someType']


But trying to just return the attribute axis doesn't seem to work:

eg     //*/@type

I've also noticed that trying to return

text()
namespace()

yields nothing.

Does anybody know the trick?

Cheers

Ben

Reply via email to