changed nokogiri 'css' to 'xpath' to get .code and .codelisting to alternate properly