You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Fernando Padilla <fe...@interdimensions.com> on 2002/09/12 02:31:13 UTC

clash between attributes: src="" xmlns:src=""

Hello,

I have a possible bug to report, I was wondering what people thought about 
it.


I have a document which contains an element like:

<logo src="http:...." xmlns:src="http://randomnamespace"/>



I'm parsing it using JAXP DOMParser, with setNamespaceAware( true ).
I've tried Xerces 2.1.0 and 2.0.1, both seem to have the same behavior.
(unless there's a classloader issue).



The exception is:


[Fatal Error] :4:135: Attribute "src" bound to namespace "null" was 
already specified for element "logo".
org.xml.sax.SAXParseException: Attribute "src" bound to namespace "null" 
was already specified for element "logo".
        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
        at 
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.query(CollectionImpl.java:490)
        at 
org.apache.xindice.client.xmldb.XindiceCollection.query(XindiceCollection.java:279)
        at 
org.apache.xindice.client.xmldb.services.QueryService.query(QueryService.java:125)
        at 
org.apache.cocoon.components.source.XMLDBSource.queryToSAX(XMLDBSource.java:347)
        at 
org.apache.cocoon.components.source.XMLDBSource.collectionToSAX(XMLDBSource.java:286)
        at 
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:222)
        at 
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:148)






Please, ideas?



Fernando


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org