xslt - php xmlParsePITarget: invalid name prefix 'xml' error -
can 1 me understand (and fix error). error reads:
warning: simplexml_load_file(): /home/jeffreycwitt/webapps/lombardpress_instances/petrusplaoul/lombardpress/phpfunctions/../../projectfiles/gittextfiles/lectio1/lectio1.xml:2: parser warning : xmlparsepitarget: invalid name prefix 'xml' in home/jeffreycwitt/webapps/lombardpress_instances/petrusplaoul/lombardpress/phpfunctions/generalfunctions.php on line 47
the error seems have schema delcarations @ beginning of xml files.
the declaration @ beginning of file looks this:
<?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> i don't understand why i'm getting warning. on systems can turn of "display_errors" hasn't been problem. i'm working system in not have access php.ini file.
ideally, i'd solve problem don't have warnings. however, need schema declarations in place other reasons.
suggestions. jw
there 1 issue:
- the
<?xmlprefix reserved first line
use underscore simple fix:
<?_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"?> references
Comments
Post a Comment