#45892 [Com]: $dom_xml->relaxNGValidate()

2008-08-22 Thread mangal dot varshney at gmail dot com
 ID:   45892
 Comment by:   mangal dot varshney at gmail dot com
 Reported By:  mangal dot varshney at gmail dot com
 Status:   Feedback
 Bug Type: DOM XML related
 Operating System: Windows/Linux
 PHP Version:  5.2.6
 New Comment:

PHP Info

http://www.epubnow.com/ePubNowWeb/phpinfo.php

Getting Following Error:

Element book has extra content: info


Previous Comments:


[2008-08-22 16:40:49] [EMAIL PROTECTED]

Please add a link to your phpinfo as well show the errors you are 
getting.
It is testing fine for me using various libxml2 versions (.30 up to 
current CVS) as well as different OS's



[2008-08-22 16:03:50] mangal dot varshney at gmail dot com

I am using libxml2.6.32. can you suggest me that on which libxml
version you have checked ?

libXML support  active
libXML Version  2.6.32
libXML streams  enabled



[2008-08-22 15:10:35] [EMAIL PROTECTED]

Try a newer version of libxml2. It works fine when I test it



[2008-08-22 10:09:21] mangal dot varshney at gmail dot com

Description:

I am trying to validate a DocBook having namest and nameend attribute
in entry element with RelexNg
(http://docbook.org/xml/5.0/rng/docbook.rng). I am using following php
code for validation. It is displaying errors in xml file but xml file
(DocBook) is valid. I have checked this XMl file on some tool whixh says
it valid like oXygen.
 
$dom_xml = new DomDocument;
$dom_xml->load("textExample.xml");
 
if ($dom_xml->relaxNGValidate("docbook.rng") )
{
   echo "Good\n";
}
else
{
echo $php_errormsg . "\n";
}

I am attaching sample DocBook in the mail.

Reproduce code:
---
XML File (DocBook) file:


http://docbook.org/ns/docbook";
xmlns:xlink="http://www.w3.org/1999/xlink"; version="5.0">

Book Template Title

Organization Name

City
Street
00
Country

[EMAIL PROTECTED]



First Part
Subtitle of First Part

Chapter Title
Subtitle of Chapter
 
Table1





Header
1

















   

Section1 Title
Subtitle of Section 1
Text





Expected result:

It should be Good.

Actual result:
--
Displaying Errors.





-- 
Edit this bug report at http://bugs.php.net/?id=45892&edit=1



#45892 [Com]: $dom_xml->relaxNGValidate()

2008-08-22 Thread mangal dot varshney at gmail dot com
 ID:   45892
 Comment by:   mangal dot varshney at gmail dot com
 Reported By:  mangal dot varshney at gmail dot com
 Status:   Feedback
 Bug Type: DOM XML related
 Operating System: Windows/Linux
 PHP Version:  5.2.6
 New Comment:

I am using libxml2.6.32. can you suggest me that on which libxml
version you have checked ?

libXML support  active
libXML Version  2.6.32
libXML streams  enabled


Previous Comments:


[2008-08-22 15:10:35] [EMAIL PROTECTED]

Try a newer version of libxml2. It works fine when I test it



[2008-08-22 10:09:21] mangal dot varshney at gmail dot com

Description:

I am trying to validate a DocBook having namest and nameend attribute
in entry element with RelexNg
(http://docbook.org/xml/5.0/rng/docbook.rng). I am using following php
code for validation. It is displaying errors in xml file but xml file
(DocBook) is valid. I have checked this XMl file on some tool whixh says
it valid like oXygen.
 
$dom_xml = new DomDocument;
$dom_xml->load("textExample.xml");
 
if ($dom_xml->relaxNGValidate("docbook.rng") )
{
   echo "Good\n";
}
else
{
echo $php_errormsg . "\n";
}

I am attaching sample DocBook in the mail.

Reproduce code:
---
XML File (DocBook) file:


http://docbook.org/ns/docbook";
xmlns:xlink="http://www.w3.org/1999/xlink"; version="5.0">

Book Template Title

Organization Name

City
Street
00
Country

[EMAIL PROTECTED]



First Part
Subtitle of First Part

Chapter Title
Subtitle of Chapter
 
Table1





Header
1

















   

Section1 Title
Subtitle of Section 1
Text





Expected result:

It should be Good.

Actual result:
--
Displaying Errors.





-- 
Edit this bug report at http://bugs.php.net/?id=45892&edit=1