cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stoeckel, Matthias" <Matthias.Stoec...@Dresdner-Bank.com>
Subject Re: [Bug] multiple Xalan transformations and i18n doesn't functio n with latest Cocoon snapshot
Date Mon, 28 Apr 2003 14:35:01 GMT
Thats the whole pipeline:

    <map:generate src="content/hello.xml"/>
    <map:transform src="ident.xsl" type="xalan"/>
    <map:transform  type="i18n">
           <map:parameter name="locale" value="de"/>
    </map:transform>  
    <map:serialize type="html"/>

I contructed this test case with the hello world example because we
encountered this with our application where we have a lot more complex
pipelines. If I switch back to the old Xalan jars everything works fine (in
our app).
I added the exclude-namespace-prefixes="i18n" and the namespace declaration
into the ident.xsl stylesheet. I get the exception below.
  Matthias


ERROR   (2003-04-28) 16:26.34:301   [core.xslt-processor]
(/samples/hello-world/hello.html) PoolThread-4/TraxErrorHandler: Error in
TraxTransformer:
file:/home/p021332/cocoon-2.1/build/webapp/samples/hello-world/ident.xsl;
Line 7; Column 37; 
; SystemID:
file:/home/p021332/cocoon-2.1/build/webapp/samples/hello-world/ident.xsl;
Line#: 7; Column#: 37
javax.xml.transform.TransformerException: "exclude-namespace-prefixes"
attribute is not allowed on the xsl:stylesheet element!
	at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:91
9)
	at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:96
2)
	at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(
XSLTElementProcessor.java:358)
	at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(
XSLTElementProcessor.java:305)
	at
org.apache.xalan.processor.ProcessorStylesheetElement.startElement(Processor
StylesheetElement.java:139)
	at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.
java:636)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRoot
ElementHook(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
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:302)
	at
org.apache.excalibur.xmlizer.DefaultXMLizer.toSAX(DefaultXMLizer.java:161)
	at
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.sourceToSAX(XSLTProcessorImp
l.java:396)
	at
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndVali
dity(XSLTProcessorImpl.java:311)
	at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
288)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli
ne(AbstractProcessingPipeline.java:391)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.setupPipeline(AbstractCachingProcessingPipeline.java:651)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipe
line(AbstractProcessingPipeline.java:505)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:467)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:150)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:162)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:325)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:307)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:131)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:162)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:325)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:307)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:131)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:162)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:325)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:307)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1139)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:280)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1717)
	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:549)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1667)
	at org.mortbay.http.HttpServer.service(HttpServer.java:863)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:773)
	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:937)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:790)
	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

Mime
View raw message