cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject [C2] Problem with new stylebook, Was: [C2] Unable to build docs
Date Tue, 24 Oct 2000 15:03:28 GMT
> From: Stefano Mazzocchi [mailto:stefano@apache.org]
>
> Paul Russell wrote:
> >
> > On Tue, Oct 24, 2000 at 03:41:14PM +1100, Brian May wrote:
> > > Hang on, that is not the only problem.
> > >
> > > The error: java.lang.NoClassDefFoundError:
> org/apache/xalan/xpath/xml/XMLParserLiaison
> > >
> > > however, I can't find this file in lib/xalan.jar, either. Perhaps
> > > xalan.jar is an old version?
> >
> > Eek! That's missing in mine, too. I would try and build the docs,
> > but for some reason my hotspot keeps throwing SIG 11 around. not
> > good. Anyone else got any ideas?
>
> Stylebook looks for Xalan1, now that we have Xalan2 you have to use the
> newest stylebook version that supports Xalan2... it should be on the
> xml-stylebook CVS module someplace...

I tried to build docs with latest stylebook from CVS, built with command
"build package2" - to use Xalan2. After building you should put
stylebook-1.0-b3_xalan-2.jar into cocoon lib directory. But this stylebook
requires
"version" attribute in all xsl stylesheets:

org.apache.trax.ProcessorException: xsl:stylesheet requires attribute:
version; SystemID: sbk:/style/stylesheets/book2project.xsl; Line#: 3;
Column#: 66
        at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:67
0)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(
XSLTElementProcessor.java:375)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(
XSLTElementProcessor.java:297)
[skip]

When I added version attribute, I have got following exception:


[Xalan2Processor] Applying XSL sheet
"sbk:/style/stylesheets/faqs2document.xsl"
org.apache.trax.TransformException: Can not create item in result tree: faqs
        at org.apache.xalan.transformer.MsgMgr.error(MsgMgr.java:278)
        at org.apache.xalan.transformer.MsgMgr.error(MsgMgr.java:207)
        at
org.apache.xalan.transformer.ClonerToResultTree.cloneToResultTree(ClonerToRe
sultTree.java:166)
        at
org.apache.xalan.transformer.ResultTreeHandler.cloneToResultTree(ResultTreeH
andler.java:631)
        at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:126)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:1483)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1400)
        at
org.apache.xalan.transformer.TransformerImpl.transformSelectedNodes(Transfor
merImpl.java:1255)
        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:177)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:1483)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1400)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:702)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:657)
        at
org.apache.stylebook.processors.Xalan2Processor.process(Xalan2Processor.java
:71)
        at org.apache.stylebook.Project.processEntry(Project.java:122)
        at org.apache.stylebook.Project.processNodeList(Project.java:54)
        at org.apache.stylebook.Project.<init>(Project.java:42)
        at org.apache.stylebook.Loader.load(Loader.java:57)
        at org.apache.stylebook.StyleBook.getProject(StyleBook.java:121)
        at org.apache.stylebook.StyleBook.main(StyleBook.java:85)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:97)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:236)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:122)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:89)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:808)
        at org.apache.tools.ant.Project.executeTarget(Project.java:533)
        at org.apache.tools.ant.Project.executeTargets(Project.java:507)
        at org.apache.tools.ant.Main.runBuild(Main.java:314)
        at org.apache.tools.ant.Main.main(Main.java:127)
org.apache.stylebook.CreationException: Can not create item in result tree:
faqs
        at
org.apache.stylebook.processors.Xalan2Processor.process(Xalan2Processor.java
:75)
        at org.apache.stylebook.Project.processEntry(Project.java:122)
        at org.apache.stylebook.Project.processNodeList(Project.java:54)
        at org.apache.stylebook.Project.<init>(Project.java:42)
        at org.apache.stylebook.Loader.load(Loader.java:57)
        at org.apache.stylebook.StyleBook.getProject(StyleBook.java:121)
        at org.apache.stylebook.StyleBook.main(StyleBook.java:85)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:97)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:236)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:122)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:89)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:808)
        at org.apache.tools.ant.Project.executeTarget(Project.java:533)
        at org.apache.tools.ant.Project.executeTargets(Project.java:507)
        at org.apache.tools.ant.Main.runBuild(Main.java:314)
        at org.apache.tools.ant.Main.main(Main.java:127)
[StyleBook] Caught org.apache.stylebook.LoadingException
org.apache.stylebook.LoadingException: Processing Entry (Can not create item
in result tree: faqs)
        at org.apache.stylebook.Project.processEntry(Project.java:126)
        at org.apache.stylebook.Project.processNodeList(Project.java:54)
        at org.apache.stylebook.Project.<init>(Project.java:42)
        at org.apache.stylebook.Loader.load(Loader.java:57)
        at org.apache.stylebook.StyleBook.getProject(StyleBook.java:121)
        at org.apache.stylebook.StyleBook.main(StyleBook.java:85)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:97)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:236)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:122)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:89)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:808)
        at org.apache.tools.ant.Project.executeTarget(Project.java:533)
        at org.apache.tools.ant.Project.executeTargets(Project.java:507)
        at org.apache.tools.ant.Main.runBuild(Main.java:314)
        at org.apache.tools.ant.Main.main(Main.java:127)


Does somebody have an idea?


Thanks,
Vadim


Mime
View raw message