#29146 [Opn->Bgs]: xs:any not implemented
| From: | chregu@php.net | Date: | Wed, 14 Jul 2004 14:14:43 +0000 |
| Subject: | #29146 [Opn->Bgs]: xs:any not implemented | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62251@lists.php.net to get a copy of this message | ||
ID: 29146
Updated by: chregu@php.net
Reported By: vincent at greenchili dot nl
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: linux-2.4.20-30.9 and WinXP
PHP Version: 5.0.0
New Comment:
This is not a bug in PHP. The XML Schema implementation of libxml2 is
not perfect yet. Improving patches are on the way, but it's nothing we
can do, it's all handled by libxml2. Complain there and send patches
;)
Previous Comments:
------------------------------------------------------------------------
[2004-07-14 15:19:21] vincent at greenchili dot nl
Description:
------------
Looks like the xs:any element is not implemented for XML Schema
Reproduce code:
---------------
<?php
$message = new DomDocument();
$message -> loadXML("<test><ok /></test>");
$message -> schemavalidate("schemas/test.xsd");
print "Ok";
?>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##any"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Expected result:
----------------
Ok
Actual result:
--------------
Warning: Unimplemented block at ..\xmlschemas.c:3246 in D:\My
Webs\test.php on line 4
Warning: Element test content check failed in D:\My Webs\test.php on
line 4
Ok
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29146&edit=1