Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php xmlParsePITarget:无效的名称前缀';xml';错误_Php_Xslt - Fatal编程技术网

php xmlParsePITarget:无效的名称前缀';xml';错误

php xmlParsePITarget:无效的名称前缀';xml';错误,php,xslt,Php,Xslt,有人能帮我理解(并修复此错误)吗。错误内容如下: 警告:simplexml\u load\u文件():/home/jeffreycwitt/webapps/lombardpress_实例/petrusplaoul/lombardpress/phpfunctions/。/../projectfiles/gitextfiles/lectio1/lectio1.xml:2:parser警告:xmlParsePITarget:home/jeffreycwitt/webapps/lombardpress_

有人能帮我理解(并修复此错误)吗。错误内容如下:

警告:simplexml\u load\u文件():/home/jeffreycwitt/webapps/lombardpress_实例/petrusplaoul/lombardpress/phpfunctions/。/../projectfiles/gitextfiles/lectio1/lectio1.xml:2:parser警告:xmlParsePITarget:home/jeffreycwitt/webapps/lombardpress_实例/petrusplaoul/lombardpress/phpfunctions/generalfunctions.php第47行的名称前缀“xml”无效

该错误似乎与xml文件开头的模式增量有关

文件开头的声明如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://bitbucket.org/lombardpress/lombardpress-schema/raw/master/LombardPressODD.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://bitbucket.org/lombardpress/lombardpress-schema/raw/master/LombardPressODD.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
    <teiHeader>

我不明白为什么我会收到警告。 在我可以打开“显示错误”的系统上,这不是问题。但现在我使用的是一个无法访问php.ini文件的系统

理想情况下,我想解决这个问题,这样我就不会收到任何警告。 但是,出于其他原因,我需要适当的模式声明

建议。 jw有一个问题:

  • 
    
    参考资料


    尝试缩短archiveSorry的路径,我不确定这意味着什么。您是指正在处理的文件的路径吗?那会很烦人,因为这需要一些时间。嗯,我不确定。有没有办法确定simple_对路径长度是否有限制?错误不是在抱怨文档中的xml前缀吗?所以它一定是在查找文档,对吗?似乎前缀为
    xml
    的PI必须明确列为例外。例如,见第194行。在您的例子中,“xml样式表”应该已经定义了——也许您可以找到它?谢谢,这对我帮助很大!
    <?_xml-model href="https://bitbucket.org/lombardpress/lombardpress-schema/raw/master/LombardPressODD.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
    <?_xml-model href="https://bitbucket.org/lombardpress/lombardpress-schema/raw/master/LombardPressODD.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>