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':
__________________________________________________________
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema
targetNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-03-23T12:23:53";
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-03-23T12:23:53";
xmlns:xhtml="http://www.w3.org/1999/xhtml";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
        <xsd:attribute name="Год" type="xsd:integer"/>
        <xsd:attribute name="Наименование_госзаказчика"
type="my:requiredString"/>
        <xsd:attribute name="Год_отчет" type="xsd:integer"/>
        <xsd:attribute name="Год_оценка" type="xsd:integer"/>
        <xsd:attribute name="ЕИ" type="my:requiredString"/>
        <xsd:attribute name="СТ" type="my:requiredString"/>
        <xsd:element name="Бюджетная_заявка">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element 
ref="my:Продукция_нефтеперерабатывающей_промышленности"
minOccurs="0"/>
                                <xsd:element 
ref="my:Продукция_угольной_промышленности"
minOccurs="0"/>
                        </xsd:sequence>
                        <xsd:attribute ref="my:Год"/>
                        <xsd:attribute ref="my:Наименование_госзаказчика"/>
                        <xsd:attribute ref="my:Год_отчет"/>
                        <xsd:attribute ref="my:Год_оценка"/>
                        <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=32760&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32760&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32760&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32760&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32760&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32760&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32760&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32760&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32760&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32760&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32760&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32760&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32760&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32760&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32760&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32760&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32760&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32760&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32760&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32760&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32760&r=mysqlcfg

Reply via email to