On Wednesday, February 20, 2002, at 01:07 PM, Benjamin Hood wrote:
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:
Not sure about this, may be a bug.
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
This is a known problem. You can work around it for now by retrieving the node and extracting the attribute. You'll have the problem with any query that returns an atomic value rather then a node of some type.
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
Kimbro Staken - http://www.kstaken.org - http://www.xmldatabases.org Apache Xindice native XML database http://xml.apache.org XML:DB Initiative http://www.xmldb.org Senior Technologist (Your company name here)
