DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5410>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5410 non-schema <attribute> attributes cause error Summary: non-schema <attribute> attributes cause error Product: Xerces-C++ Version: 1.5.2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The W3C's XML Structures document allows the <attribute> element to contain attributes that belong to a non-schema namespace (see http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-attribute). But parsing a document that relies upon a schema that contains <attribute> elements with such attributes causes an error during a validating parse. Here's a test schema: <schema xmlns='http://www.w3.org/2001/XMLSchema' targetNamespace='http://www.fred.com' xmlns:fred='http://www.fred.com' xmlns:barney='http://www.barney.com' elementFormDefault='qualified' version='1.0.0'> <complexType name='TestType'> <attribute name='display' type='boolean' barney:mutable='true'/> </complexType> <element name='test' type='fred:TestType'/> </schema> and a test document: <?xml version='1.0' encoding='UTF-8' standalone='no'?> <test xmlns='http://www.fred.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.fred.com ./TestSchema.xsd' display='true'/> XML Spy validates both of these, but when I do a validating parse on the document, I get this error: Error parsing file "C:\test\TestDocument.xml", line 5, column 21 Message: Attribute 'mutable' cannot appear in local attribute declarations. Please note that I am using Xerces/C 1.6.0, not 1.5.2: your web form hasn't been updated to list 1.6.0 as an available release. Please advise: is this a bug? thanks, tim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
