Re: Saxon Integration (Newbie)

2001-12-06 Thread Sylvain Wallez


 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?

Yes, these are bugs. I corrected this, and the updated sitemap.xsl is
available in CVS.

 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.)

You can register bugs in bugzilla at http://nagoya.apache.org/bugzilla/
If you have solved the bug, you can attach the patch (using diff -u) to
the bug entry.

Only committers can write in CVS, but a way to become one is to send so
many patches that we vote to allow you to apply your patches by yourself
;)

 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.

Great : one day, one bug. Keep on !

 Thanks
  
 Luke

Sylvain

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

-
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]




RE: Saxon Integration (Newbie)

2001-12-04 Thread Luke Studley








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-
From: Luke Studley
[mailto:[EMAIL PROTECTED]] 
Sent: 04 December 2001 14:52
To: '[EMAIL PROTECTED]'
Subject: Saxon Integration
(Newbie)



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] (/webcare/web/overview.html)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line 17; Column -1; 

; SystemID:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line#: 17; Column#: -1

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