ID:               32766
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vld3 at rambler dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         DOM XML related
 Operating System: win/xp
 PHP Version:      5CVS-2005-04-19 (dev)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

We need a selfrunning example, not just some fragment code..

And it's most likely not a PHP bug, but (assuming your XSD is correct)
a libxml2 bug. Please try with the latest libxml2 library and with the
standalone tool xmllint from the libxml2 distribution. If both do the
correct thing, it's maybe a PHP bug, if libxml2 reports the same error,
it's nothing we can do and you have to complain to the libxml2 authors.


Previous Comments:
------------------------------------------------------------------------

[2005-04-19 14:08:08] vld3 at rambler dot ru

Description:
------------
this is fragment 'myschema.xsd':
__________________________________________________________
&lt;xsd:anyAttribute processContents="lax"
namespace="http://www.w3.org/XML/1998/namespace"; /&gt;
_________________________________________________________

error on &lt;xsd:anyAttribute . . . . . . . . . . . . . . 


Reproduce code:
---------------
&lt;?php
$dom = new DOMDocument();
//$dom->load('sampledata.xml');
$dom->load('qqqq.xml');

$p = $dom->schemaValidate('myschema.xsd');
if ($p)  echo "OK";else echo "ERR";
echo "\n";
?&gt;

Expected result:
----------------
OK

Actual result:
--------------
Warning: compilation error in c:\ELMARK\XmlXsl.php on line 11

Warning: Schemas: attribute anyattr 9 has no type nor reference in
c:\ELMARK\XmlXsl.php on line 11

Warning: Invalid Schema in c:\ELMARK\XmlXsl.php on line 11
ERR 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32766&edit=1

Reply via email to