#32762 [NEW]: Error on schemaValidate();
| From: | vld3 at rambler dot ru | Date: | Tue, 19 Apr 2005 12:02:48 +0000 |
| Subject: | #32762 [NEW]: Error on schemaValidate(); | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-77872@lists.php.net to get a copy of this message | ||
From: vld3 at rambler dot ru
Operating system: win/xp
PHP version: 5CVS-2005-04-19 (dev)
PHP Bug Type: DOM XML related
Bug description: Error on schemaValidate();
Description:
------------
this is fragment 'sampledata.xml':
__________________________________________________________
xsd:anyAttribute processContents="lax"
namespace="http://www.w3.org/XML/1998/namespace" /
_________________________________________________________
error on <xsd:anyAttribute . . . . . . . . . . . . . .
Reproduce code:
---------------
<?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";
?>
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 bug report at http://bugs.php.net/?id=32762&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32762&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32762&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32762&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32762&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32762&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32762&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32762&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32762&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32762&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32762&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32762&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32762&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32762&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32762&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32762&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32762&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32762&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32762&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32762&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32762&r=mysqlcfg