Think I've found a couple of problems
in the sitemap.xsl file Line 430
XSLTFactoryLoader:hasSubstitutions(@pattern) should maybe read: XSLTFactoryLoader:hasSubstitutions($factory-loader, @pattern) Line 921
XSLTFactoryLoader:escape($pattern-value) should maybe read: XSLTFactoryLoader:escape($factory-loader,
$pattern-value) Making these changes I can manually run
the stylesheet against my sitemap - I am
guessing that maybe Xalan is less fussy about the
missing java objects (although I don't know how!). Haven't tried re-creating
the jar and re-trying C2 yet though. Can somebody tell me if these are C2 bugs -
or are they there for a reason - or am I seeing some differences in usage
of Saxon and Xalan? More generally - if they are bugs -
who should I submit changes to - or should I make changes myself somehow
(I'm not averse to making the changes myself in CVS - but have
never contributed directly to an Open Source project before so don't know
the procedure/etiquette etc.) Sorry if these are repetitive questions -
I couldn't search the archives as the disks were down and I only started
using Cocoon (and joined the list) yesterday. Thanks Luke -----Original Message----- Hi all I've just started using C2 and am
having some difficulties getting saxon (6.5) to work. I have a simple XML page
and a single stylesheet, I have this working with the default Xalan processor -
but when I plug in Saxon (by placing it in the WEB-INF/lib directory and
declaring it in the cocoon.xconf) I get the following errors (and lots of
others like it) in components.log. Does anybody know of any
incompatibilities with the built in stylesheets and saxon 6.5.? Or what else I
may be doing wrong? Thanks Luke ERROR (2001-12-04) 14:47.35:960 [root.xsl] (/ ; SystemID:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/ javax.xml.transform.TransformerConfigurationException:
Attribute xmlns:xsl is not allowed on this element at
com.icl.saxon.style.StyleElement.compileError(StyleElement.java:846) at
com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208) at
com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287) at
com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:501) at
com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351) at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.java:176) at
com.icl.saxon.TemplatesHandlerImpl.getTemplates(TemplatesHandlerImpl.java:70) at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:190) at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler(Logicsheet.java:144) at
org.apache.cocoon.components.language.markup.Logicsheet.getNamespaces(Logicsheet.java:126) at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(AbstractMarkupLanguage.java:350) at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:510) at
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$SitemapTransformerChainBuilderFilter.startElement(SitemapMarkupLanguage.java:368) at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575) at
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$PreProcessFilter.startElement(SitemapMarkupLanguage.java:211) at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284) at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1171) at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130) at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275) at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:309) at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271) at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:221) at
org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at
java.lang.Thread.run(Thread.java:484) ERROR (2001-12-04) 14:47.35:960 [root.xsl] (/ ; SystemID:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/ javax.xml.transform.TransformerConfigurationException:
Attribute xmlns:map is not allowed on this element at
com.icl.saxon.style.StyleElement.compileError(StyleElement.java:846) at
com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208) at
com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287) at
com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:501) at
com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351) at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.java:176) at
com.icl.saxon.TemplatesHandlerImpl.getTemplates(TemplatesHandlerImpl.java:70) at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:190) at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler(Logicsheet.java:144) at
org.apache.cocoon.components.language.markup.Logicsheet.getNamespaces(Logicsheet.java:126) at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(AbstractMarkupLanguage.java:350) at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:510) at
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$SitemapTransformerChainBuilderFilter.startElement(SitemapMarkupLanguage.java:368) at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575) at
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$PreProcessFilter.startElement(SitemapMarkupLanguage.java:211) at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284) at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1171) at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130) at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275) at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:309) at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271) at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:221) at
org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at
java.lang.Thread.run(Thread.java:484) Luke |
- Saxon Integration (Newbie) Luke Studley
- Re: Saxon Integration (Newbie) Sylvain Wallez
- Luke Studley