Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something wrong with CSS Selector in Version 0.0.5 #13

Closed
ninozhang opened this issue Apr 12, 2015 · 5 comments
Closed

Something wrong with CSS Selector in Version 0.0.5 #13

ninozhang opened this issue Apr 12, 2015 · 5 comments

Comments

@ninozhang
Copy link

Code:
{
'city': '.cityName h3',
'district': '.cityName h1',
'current': '.sk .tem span',
'wet': '.sk .num .sp1',
'wind': '.sk .num .sp2',
--> 'otherCity[]': '.city li a span',
'otherCityLink[]': '.city li a@href'
}

'.city li a span' works fine in v0.0.4.
But in v0.0.5 show this message:
omsosis DEBUG (get) starting instance 2
XPath error : Invalid expression
.//*[contains(concat(' ',normalize-space(@Class),' '),' city ')]//li a//span

Plz help..

@davious
Copy link

davious commented Apr 12, 2015

I've run into a similar issue #id tbody tr fails, while #id tbody > tr works.

XPath error : Invalid expression
.//*[@id='id']//tbody tr
                      ^

interestingly #id div div only generates

XPath error : Invalid expression
xmlXPathEval: evaluation failed

@rchipka
Copy link
Owner

rchipka commented Apr 12, 2015

This issue was due to an update improving quote escaping in selectors. The issue is fixed in 0.0.6. Please try the latest version and let me know if you have any more issues as Osmosis is undergoing many changes and enhancements.

@davious
Copy link

davious commented Apr 12, 2015

#13 (comment) is good now

@rchipka rchipka closed this as completed Apr 12, 2015
@robert26bussard51
Copy link

RÖB

On Apr 12, 2015 5:33 AM, "nino" notifications@github.com wrote:

Code:
{
'city': '.cityName h3',
'district': '.cityName h1',
'current': '.sk .tem span',
'wet': '.sk .num .sp1',
'wind': '.sk .num .sp2',
--> 'otherCity[]': '.city li a span',
'otherCityLink[]': '.city li a@href'
}

'.city li a span' works fine in v0.0.4.
But in v0.0.5 show this message:
omsosis DEBUG (get) starting instance 2
XPath error : Invalid expression
.//*[contains(concat(' ',normalize-space(@Class https://github.com/class),'
'),' city ')]//li a//span

Plz help..


Reply to this email directly or view it on GitHub
#13.

@robert26bussard51
Copy link

RÖB

On Apr 12, 2015 3:00 PM, "rc0x03" notifications@github.com wrote:

Closed #13 #13.


Reply to this email directly or view it on GitHub
#13 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants