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. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno wn Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanQName(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scan RootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337) at org.apache.cocoon.components.xscript.XScriptObject.toSAX(XScriptObject.j ava:163) at org.apache.cocoon.components.xscript.XScriptObject.toEmbeddedSAX(XScript Object.java:153) at org.apache.cocoon.www.samples.soap.pages.test_xsp.generate(org.apache.co coon.www.samples.soap.pages.test_xsp:181) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nerator.java:260) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process XMLPipeline(AbstractProcessingPipeline.java:547) ... 63 more --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
