php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29146 xs:any not implemented
Submitted: 2004-07-14 15:19 UTC Modified: 2004-07-14 16:13 UTC
From: vincent at greenchili dot nl Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.0.0 OS: linux-2.4.20-30.9 and WinXP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vincent at greenchili dot nl
New email:
PHP Version: OS:

 

 [2004-07-14 15:19 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-14 16:14 UTC] chregu@php.net
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 ;)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 23:01:29 2024 UTC