http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2561 *** shadow/2561 Tue Jul 10 23:55:06 2001 --- shadow/2561.tmp.10401 Wed Jul 11 09:05:46 2001 *************** *** 2,9 **** | Problem with standalone documents | +----------------------------------------------------------------------------+ | Bug #: 2561 Product: Xerces-C | ! | Status: NEW Version: 1.5 | ! | Resolution: Platform: PC | | Severity: Normal OS/Version: Windows NT/2K | | Priority: Other Component: Build | +----------------------------------------------------------------------------+ --- 2,9 ---- | Problem with standalone documents | +----------------------------------------------------------------------------+ | Bug #: 2561 Product: Xerces-C | ! | Status: RESOLVED Version: 1.5 | ! | Resolution: INVALID Platform: PC | | Severity: Normal OS/Version: Windows NT/2K | | Priority: Other Component: Build | +----------------------------------------------------------------------------+ *************** *** 33,36 **** <animal/> ibm32i01.dtd : ! <!ATTLIST animal color CDATA #FIXED "yellow"> --- 33,73 ---- <animal/> ibm32i01.dtd : ! <!ATTLIST animal color CDATA #FIXED "yellow"> ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-07-11 09:05 ------- ! Similar to bug #2562, since these are validity constraints, you have to turn ! validation in order to get the error reported. ! ! Here is what I get using Xerces 1.5: ! D:\xerces-c1_5_0-win32\bin>domcount -v=always d:\mydoc\xml\myxml\bug2561.xml ! ! Fatal Error at file d:\mydoc\xml\myxml\bug2561.xml, line 10, char 10 ! Message: Bad standalone declaration ! ! Errors occured, no output available ! ! ! D:\xerces-c1_5_0-win32\bin>cat d:\mydoc\xml\myxml\bug2561.xml ! <?xml version="1.0" standalone="yes" ?> ! <!DOCTYPE animal SYSTEM "ibm32i01.dtd" [ ! <!ELEMENT animal EMPTY> ! ]> ! <!-- This is against VC: Standalone Document Declaration in P32 ! The standalone document declaration has the value "yes", there is an external ! markup declaration of attributes with default values, and the associated ! element appears in the document with specified values for those attributes. ! --> ! <animal/> ! ! And we have just fixed in the latest nightly build that it should be just ! "Error" instead of "Fatal Error" since it is validity constraint. So using the ! latest nightly build, it now gives: ! ! E:\>domcount -v=always d:\mydoc\xml\myxml\bug2561.xml ! ! Error at file d:\mydoc\xml\myxml\bug2561.xml, line 10, char 10 ! Message: Attribute 'color' for element 'animal' has a default value and must ! be specified in a standalone document. ! ! Errors occured, no output available --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]