Empact/roxml — pull request #49 by chewi (2012-11-27 16:28:20+00:00)
Title: Namespacify all elements of an XPath, not just the first

I found that when a default namespace was present, specifying a deep XPath in :from was ineffective because the namespace was only being prepended to the whole XPath string and not each element. I was initially just going to `what.split("/")` but that would have broken more complex expressions so I avoided that problem with a scary-looking regular expression. I also made the check for an existing namespace a little more careful in the process.