You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Lennard Fuller <lf...@unicon.net> on 2002/07/26 21:27:55 UTC
Re: problems with XPath and alphanumberic attributes
No... I'm using Linux as I stated earlier. To be precise I am using RedHat
7.2.
On Friday 26 July 2002 12:28 pm, you wrote:
> Let me guess, running on windows?
> Try this...
>
> xindice xpath_query -c /db/data/products -q
> "/product[@product_id='G120320']"
>
> If not running on windows, please provide more info.
>
> HTH,
>
> Mark
>
> Lennard Fuller wrote:
> > I'm running Xindices on Linux and have the following difficulty:
> > With the following xml doc in collection /db/data/products.
> > <?xml version="1.0"?>
> > <product product_id="G120320">
> > <description>Glazed Ham</description>
> > </product>
> >
> > This command line query returns nothing
> > xindice xpath_query -c /db/data/products -q
> > /product[@product_id="G120320"]
> >
> > Where as a similar xml document and XPath query without any alphabetic
> > chars in the product id works perfectly.
> >
> > I've verified that both docs (with and without the 'G') are in the
> > collection I'm querying. Am at a loss as to what I should do next.
> >
> > Thanks,
> > Lennard
Re: problems with XPath and alphanumberic attributes
Posted by "Mark J. Stang" <ma...@earthlink.net>.
Did you try it with single quotes?
Mark
Lennard Fuller wrote:
> No... I'm using Linux as I stated earlier. To be precise I am using RedHat
> 7.2.
>
> On Friday 26 July 2002 12:28 pm, you wrote:
> > Let me guess, running on windows?
> > Try this...
> >
> > xindice xpath_query -c /db/data/products -q
> > "/product[@product_id='G120320']"
> >
> > If not running on windows, please provide more info.
> >
> > HTH,
> >
> > Mark
> >
> > Lennard Fuller wrote:
> > > I'm running Xindices on Linux and have the following difficulty:
> > > With the following xml doc in collection /db/data/products.
> > > <?xml version="1.0"?>
> > > <product product_id="G120320">
> > > <description>Glazed Ham</description>
> > > </product>
> > >
> > > This command line query returns nothing
> > > xindice xpath_query -c /db/data/products -q
> > > /product[@product_id="G120320"]
> > >
> > > Where as a similar xml document and XPath query without any alphabetic
> > > chars in the product id works perfectly.
> > >
> > > I've verified that both docs (with and without the 'G') are in the
> > > collection I'm querying. Am at a loss as to what I should do next.
> > >
> > > Thanks,
> > > Lennard
--
Mark J Stang
System Architect
Cybershop Systems
Re: problems with XPath and alphanumberic attributes
Posted by Lennard Fuller <lf...@unicon.net>.
Brad and Mark,
No index's have been defined. However Mark's 'Windows' fix appears to have
cleared some of my difficulties up.
Thanks,
Lennard
On Friday 26 July 2002 12:44 pm, Brad Burdick wrote:
> [ Charset ISO-8859-15 unsupported, converting... ]
>
> > No... I'm using Linux as I stated earlier. To be precise I am using
> > RedHat 7.2.
>
> is your product_id attribute an index field, and if so, what type is it?
> just wondering if it might be an integer index field and dropping non-digit
> values.
>
> seems like i was bitten by that in the past.
>
> -brad
>
> > On Friday 26 July 2002 12:28 pm, you wrote:
> > > Let me guess, running on windows?
> > > Try this...
> > >
> > > xindice xpath_query -c /db/data/products -q
> > > "/product[@product_id='G120320']"
> > >
> > > If not running on windows, please provide more info.
> > >
> > > HTH,
> > >
> > > Mark
> > >
> > > Lennard Fuller wrote:
> > > > I'm running Xindices on Linux and have the following difficulty:
> > > > With the following xml doc in collection /db/data/products.
> > > > <?xml version="1.0"?>
> > > > <product product_id="G120320">
> > > > <description>Glazed Ham</description>
> > > > </product>
> > > >
> > > > This command line query returns nothing
> > > > xindice xpath_query -c /db/data/products -q
> > > > /product[@product_id="G120320"]
> > > >
> > > > Where as a similar xml document and XPath query without any
> > > > alphabetic chars in the product id works perfectly.
> > > >
> > > > I've verified that both docs (with and without the 'G') are in the
> > > > collection I'm querying. Am at a loss as to what I should do next.
> > > >
> > > > Thanks,
> > > > Lennard
Re: problems with XPath and alphanumberic attributes
Posted by Brad Burdick <bb...@media.org>.
[ Charset ISO-8859-15 unsupported, converting... ]
> No... I'm using Linux as I stated earlier. To be precise I am using RedHat
> 7.2.
is your product_id attribute an index field, and if so, what type is it? just
wondering if it might be an integer index field and dropping non-digit values.
seems like i was bitten by that in the past.
-brad
>
> On Friday 26 July 2002 12:28 pm, you wrote:
> > Let me guess, running on windows?
> > Try this...
> >
> > xindice xpath_query -c /db/data/products -q
> > "/product[@product_id='G120320']"
> >
> > If not running on windows, please provide more info.
> >
> > HTH,
> >
> > Mark
> >
> > Lennard Fuller wrote:
> > > I'm running Xindices on Linux and have the following difficulty:
> > > With the following xml doc in collection /db/data/products.
> > > <?xml version="1.0"?>
> > > <product product_id="G120320">
> > > <description>Glazed Ham</description>
> > > </product>
> > >
> > > This command line query returns nothing
> > > xindice xpath_query -c /db/data/products -q
> > > /product[@product_id="G120320"]
> > >
> > > Where as a similar xml document and XPath query without any alphabetic
> > > chars in the product id works perfectly.
> > >
> > > I've verified that both docs (with and without the 'G') are in the
> > > collection I'm querying. Am at a loss as to what I should do next.
> > >
> > > Thanks,
> > > Lennard
>
--
Brad Burdick | bburdick@media.org
http://media.org/ | The medium is NOT the message