#32765 [NEW]: Error on schemaValidate();

From: Date: Tue, 19 Apr 2005 12:06:17 +0000
Subject: #32765 [NEW]: Error on schemaValidate();
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77870@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=32765&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32765&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32765&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32765&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32765&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32765&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32765&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32765&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32765&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32765&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32765&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=32765&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=32765&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32765&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32765&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32765&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32765&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32765&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32765&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32765&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32765&r=mysqlcfg


Thread (1 message)

  • vld3 at rambler dot ru
« previous php.bugs (#77870) next »