I would interpret it as a message about an invalid QName for an element. When you point out the usage of the default namespace am I correct that it works using a namespace prefix. If so, I guess there is a bug anywhere in the code. Maybe only a simple prefix + ":" + localname and the prefix is an empty string.
Can you confirm this. Is your example based on the samples delivered with Cocoon?
Joerg
Alex Rudnev wrote:
I was playing with samples in "soap" section and got strange error, which happens when you try to use default namespace in xsp / xscript code.
I'm using Cocoon 2.1 with Tomcat 4.1.27 under Sun's JDK 1.4.2. Xerces 2.4.0 included in Cocoon, but I'm not sure it matters here.
Thanks in advance, Ru.
Here is simplified xsp file which defines default namespace in
declaration of xscript variable:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
xmlns:xscript="http://apache.org/xsp/xscript/1.0">
<page>
<xscript:variable name="test-xml">
<test xmlns="urn:some-url">!!!</test>
</xscript:variable>
<xscript:get name="test-xml" /> </page> </xsp:page>
Description:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: xscript:inline:4283206:4:16:org.xml.sax.SAXParseException: Element or attribute do not match QName production:
QName::=(NCName':')?NCName.
Here is part of the stack trace:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
xscript:inline:4283206:4:16:org.xml.sax.SAXParseException: Element or
attribute do not match QName production: QName::=(NCName':')?NCName. at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
XMLPipeline(AbstractProcessingPipeline.java:553)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:229)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:491)
...
Caused by: org.xml.sax.SAXParseException: Element or attribute do not
match QName production: QName::=(NCName':')?NCName.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
