我正在尝试执行我的xsl文件并收到一条错误消息,提示未找到新函数。执行我的xsl的命令:xsltprocGetRequestTransformation.xslxsltTest.xml每当我尝试在我的Linux机器上执行上述命令时,我都会收到以下错误:compilationerror:fileGetRequestTransformation.xslline5elementstylesheetxsl:version:only1.0featuresaresupportedxmlXPathCompOpEval:functionnewnotfoundXPatherror:Unregistere
我在我的Rails项目中运行Xpath2.0,并尝试使用它提供的matches()函数,如下所示:page=Mechanize.new.get('http://www.example.com').parserpage.search("//a[matches(text(),'lagerfordon','i')]").first.text抛出以下错误:RuntimeError:xmlXPathCompOpEval:functionmatchesnotfound我做错了什么? 最佳答案 Nokogiri(Mechanize构建于其上)使用