tenderlove/nokogiri — Issue #603: XPATH query fails to find any 'meta' tags in this XML document
Author: brainlid
Created: 2012-01-25 18:05:22+00:00
State: open

Given the following shortened sample of a Calibre metadata 'opf' file (using schema from this standards body, http://idpf.org/), Nokogiri fails to find any meta tags using xpath. However, it works using css query.

```ruby
text = <<-eoxml

2010-07-15T07:00:00+00:00
Fiction

eoxml

# The following code would be expected to return meta tags, but none are returned.
doc = Nokogiri::XML(text)
doc.xpath('//meta')
#=> []

# Changing it to use the css selector however, does return the nodes.
doc.css('meta').count
#=> 4

# So for fetching a content attribute, here's what happens...
doc.xpath('//meta[@name="calibre:series"]')
#=> []

doc.css('meta[@name="calibre:series"]').first['content']
#=> "Some Trilogy Name"
```

Am I doing something wrong?

* ruby-1.9.2-p290
* nokogiri 1.5.0