Quantcast

Fatal Error: A colon is not allowed in the name 'IS10744:arch' when namespaces are enabled.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fatal Error: A colon is not allowed in the name 'IS10744:arch' when namespaces are enabled.

Jeff Jones
I'm sorry if this has been addressed before, but I couldn't find
anything in the archives abut it.

I'm working with OPS 3.0beta2, Sun JDK 1.5.0.04, and Tomcat 5.5.9 on
Linux. I'm trying to get OPS to display a simple static XHTML document:

     <page path-info="/cc" view="oxf:/xhtml/cc.xhtml" />

OPS correctly handles the request and finds the file, but when it tries
to serve it, it throws the following exception:

org.orbeon.oxf.common.ValidationException:
http://www.w3.org/TR/xhtml-basic/xhtml-arch-1.mod, line 36, column 15 :
Fatal Error: A colon is not allowed in the name 'IS10744:arch' when
namespaces are enabled.
         at
org.orbeon.oxf.xml.XMLUtils$ErrorHandler.fatalError(XMLUtils.java:178)
         at
orbeon.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:218)
         at
orbeon.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
         at
orbeon.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:314)
         at
orbeon.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1436)
         at
orbeon.apache.xerces.impl.XMLScanner.scanPIData(XMLScanner.java:708)
         at
orbeon.apache.xerces.impl.XMLDTDScannerImpl.scanPIData(XMLDTDScannerImpl.java:771)
         at orbeon.apache.xerces.impl.XMLScanner.scanPI(XMLScanner.java:664)
         at
orbeon.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:1950)
    (etc, etc, etc)

 From what I've gleaned online, there's actually a problem with the
syntax of "xhtml-arch-1.mod" on the W3C site, so this may be correct
behavior on the part of Xerces. Correct or not, though, it's not helpful
to me. Is there a fix or workaround for this? Could I possibly be
running the wrong Xerces, and if so, how would I check? (I haven't
changed the versions of Xerces provided with either Tomcat or OPS).
Barring other solutions, is there at least a way to turn off validation
so I don't trip on this error?

Thanks for your help. If more information about my configuration would
be useful, I'll be glad to provide it.

Jeff Jones
The Weather Channel Interactive



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fatal Error: A colon is not allowed in the name 'IS10744:arch' when namespaces are enabled.

dsmall-2

On Thu, 04 Aug 2005 12:01:24 +0000, "Jeff Jones"
said:

> I'm sorry if this has been addressed before, but I couldn't find
> anything in the archives abut it.
>
> I'm working with OPS 3.0beta2, Sun JDK 1.5.0.04, and Tomcat 5.5.9 on
> Linux. I'm trying to get OPS to display a simple static XHTML document:
>
>      <page path-info="/cc" view="oxf:/xhtml/cc.xhtml" />
>
> OPS correctly handles the request and finds the file, but when it tries
> to serve it, it throws the following exception:
>
> org.orbeon.oxf.common.ValidationException:
> http://www.w3.org/TR/xhtml-basic/xhtml-arch-1.mod, line 36, column 15 :
> ....
>  From what I've gleaned online, there's actually a problem with the
> syntax of "xhtml-arch-1.mod" on the W3C site, so this may be correct
> behavior on the part of Xerces. Correct or not, though, it's not helpful
> to me. Is there a fix or workaround for this?
Don't use w3c's broken DTDs.
( Seems they know their broken
  http://hades.mn.aptest.com/cgi-bin/voyager-issues/Modularization-DTDs?id=468;page=3;user=guest
  )

Now we use schemas rather than DTDs, so I assume your file cc.xhtml
is pulling the DTD in.  So if that's the case, just change cc.xtml
to not pull in the DTD. ( Remove the doctype, or point it at 'fixed'
DTDs. )


> Could I possibly be running the wrong Xerces, and if so, how would I check? (I haven't
> changed the versions of Xerces provided with either Tomcat or OPS).

We use a repackaged version of xerces ( org.apache changed to
orbeon.apache )
so unless you unconsciously repackaged some other version of xerces
and then replaced ours, OPS is using the version that shipped
with it. :)

> Barring other solutions, is there at least a way to turn off validation
> so I don't trip on this error?

Don't believe so.

-- Regards, Dan S

--
http://www.fastmail.fm - Send your email first class




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Loading...