cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Alos <oalos2...@yahoo.es>
Subject RE: Cocoon and DocBook?
Date Mon, 06 May 2002 17:20:22 GMT
 I am using Norman Walsh's DocBook too:
rdf + (xsp + taglib + doocbook)--> xsl-fo --> *
amd I have the same problems: it only works with
simple <article> but no for complex docbook documents
How do you change Xalan to Saxon?
I try to delete xalan-2.3.1.jar and put saxon jars in
WEB-INF\lib but it doesn't work

Saxon 7.1
Cocoon 2.02
Norman Walsh's DocBook 1.50.1-EXP
Tomcat 3.3a

my pipeline:
  <map:match pattern="imprime">
	<map:act type="dame-listado">
		<map:generate src="{plantilla}.xsp"
type="serverpages"/> 
		<map:generate src="ContratoFacultativo.xsp"
type="serverpages"/>
		<map:transform src="docbookxsl/fo/miDocbook.xsl"/>
		<map:select type="parameter">
			<map:parameter name="parameter-selector-test"
value="{salida}"/>
			<map:when test="pdf">
				<map:serialize type="fo2pdf"/>
			</map:when>
			<map:otherwise>
				<map:serialize type="xml"/>
			</map:otherwise>
		</map:select>
	</map:act>
   </map:match>


my error:

stack-trace

; SystemID:
jar:file:C:/Omar/jakarta-tomcat-3.3a/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line#: 49; Column#: -1
javax.xml.transform.TransformerException: No
implementation of function saxon:system-id is
available
	at
net.sf.saxon.style.StyleElement.styleError(StyleElement.java:828)
	at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:664)
	at
net.sf.saxon.style.XSLWhen.process(XSLWhen.java:72)
	at
net.sf.saxon.style.XSLChoose.process(XSLChoose.java:100)
	at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
	at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
	at
net.sf.saxon.style.XSLCallTemplate.process(XSLCallTemplate.java:187)
	at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
	at
net.sf.saxon.style.XSLForEach.process(XSLForEach.java:107)
	at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
	at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
	at
net.sf.saxon.style.XSLCallTemplate.process(XSLCallTemplate.java:187)
	at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
	at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
	at
net.sf.saxon.style.XSLTemplate.start(XSLTemplate.java:200)
	at
net.sf.saxon.Controller.applyTemplates(Controller.java:287)
	at
net.sf.saxon.style.XSLApplyTemplates.process(XSLApplyTemplates.java:135)
	at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
	at
net.sf.saxon.style.LiteralResultElement.process(LiteralResultElement.java:296)
	at
net.sf.saxon.style.StyleElement.processChildren(StyleElement.java:659)
	at
net.sf.saxon.style.XSLTemplate.expand(XSLTemplate.java:229)
	at
net.sf.saxon.style.XSLTemplate.start(XSLTemplate.java:200)
	at
net.sf.saxon.Controller.applyTemplates(Controller.java:287)
	at net.sf.saxon.Controller.run(Controller.java:197)
	at
net.sf.saxon.Controller.transformDocument(Controller.java:1238)
	at
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:101)
	at
org.xml.sax.helpers.XMLFilterImpl.endDocument(Unknown
Source)
	at
org.xml.sax.helpers.XMLFilterImpl.endDocument(Unknown
Source)
	at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
	at
org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder.java:704)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.java:997)
	at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:437)
	at
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1150)
	at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3195)
	at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEntityManager.java:2852)
	at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:987)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
	at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)
	at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)
	at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
	at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157)
	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
	at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:175)
	at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:365)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
	at
org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
	at java.lang.Thread.run(Thread.java:484)


Thanks,

Omar

--- Michael Cortez <mcortez@fullcoll.edu> escribió: >
>> I bet that's not cocoon problem but the
> stylesheet you are 
> >> using and Xalan. I bet that the next line after 
> 
> Actually I finally debugged it -- it was Xalan.  I
> had to switch out to
> Saxon, which brought with it Alfred, which caused
> it's own problems, which
> I've solved via a work around (Alred doesn't handle
> relative URIs very
> well.)
> 
> >> Check your stylesheet for problems or change
> Xalan version.
> 
> Stylesheet = Good
> 
> Xalan = Bad
> 
> Stylesheet + Saxon = very good.  8-D
> 
> But now I've a new problem, to be posted under a new
> subject...
> 
> --
> Mike
> 
  

_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message