J.Pietschmann wrote:

> Hi,
> I get the following from my installation of Cocoon 2.0.2 on
> Websphere 3.5.4:
>
> ERROR   (2002-05-30) 17:17.44:821   [core.xslt-processor] (...)
>  Worker#5/TraxErrorHandler: Error in TraxTransformer:
>  ... SystemID: file:/.../spec.xsl; Line#: 5; Column#: -1
>  javax.xml.transform.TransformerConfigurationException:
>  Attribute xmlns:xsl is not allowed on this element
>
> I have Saxon 6.5.4 followed by xerces-1.4.4.jar in the classpath
> (all before the WebSphere cruft). The parser configuration in
> cocoon.xconf is:
>
>   <xml-parser class="org.apache.avalon.excalibur.xml.XercesParser"
>               logger="core.xml-parser">
>     <parameter name="validate" value="false"/>
>     <parameter name="namespace-prefixes" value="false"/>
>     <parameter name="stop-on-warning" value="true"/>
>     <parameter name="stop-on-recoverable-error" value="true"/>
>     <parameter name="reuse-parsers" value="false"/>
>
> Additionally the servlet parameter org.apache.avalon.excalibur.xml.Parser
> is set to org.apache.avalon.excalibur.xml.XercesParser
>
> Namespace-prefixes *is* set to false, as recommended. I read the
> comment that this setting suppresses passing the xmlns as
> attributes to the XML consumer (i.e. Saxon).
>
> Is there a way to get rid of this log-hogging annoyances? Should
> I use Xerces 2.0.0? The 1.4.4 jar is a legacy from an earlier
> Cocoon 2.0.0 installation, I can change it.


The parameters listed above are for JaxpParser. XercesParser doesn't 
handle them and forces namespace-prefixes to true.

So please switch to JaxpParser which cleanly handles this. Note that 
this may require to upgrade to a newer version of Xerces (don't now JAXP 
support in 1.4.4)

Sylvain

-- 
Sylvain Wallez
  Anyware Technologies                  Apache Cocoon
  http://www.anyware-tech.com           mailto:[EMAIL PROTECTED]




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to