Hi Sander, See [1] in the Namespaces rec. It says that no entity names, PI targets, or notation names may contain any colons. So, your example document isn't namespace well-formed.
[1] http://www.w3.org/TR/REC-xml-names/#Conformance On Mon, 1 Dec 2003, Sander Bos wrote: > Hi there, > > We just moved an application from Xerces 2.4 to Xerces 2.6, and on a > file like: > > <?xml version="1.0"?> > <?txt:Test This is a test?> > <test/> > > It now gives the error: > :::::2:11:A colon is not allowed in the name 'txt:Test' when namespaces > are enabled. > at > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav > a:361) > at > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav > a:314) > at > org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1378) > at org.apache.xerces.impl.XMLScanner.scanPIData(XMLScanner.java:670) > > It seems that code was added specifically (in Xerces 2.5) to look for > this colon in pi target-names. I looked at some specs (mostly > http://www.w3.org/TR/REC-xml-names/), but could not find any reference > that a colon is an illegal character in pi target names? Does anybody > here know why this is illegal? > > Kind regards, > > --Sander. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------- Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
