----- Original Message -----
From: "Kimbro Staken" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, February 21, 2002 6:39 PM
Subject: Re: QUERIES: NS-Attribute Predicates in the Root Node / Returning
Attribute Nodes


>
> 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.

Obvoiusly this would a quick solution, but I would be more interested in
working on a more long term solution. Other than that, it's work that a
backend should be doing. Maybe you could let me know where this has been
implemented so that I could weigh up the option of fixing the problem on the
xindice side....

>
> >
> > 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)
>

Reply via email to