Menu

DocBook and Saxon

Help
2006-06-13
2013-04-03
  • Owen Campbell

    Owen Campbell - 2006-06-13

    I'm having trouble using OrangeVolt with DocBook and wondered if someone could help?

    I'm using the docbook-xsl-1.69 stylesheets and also the docbook test documents. They all work fine when I use Apache Xalan-J 2 as the processor. However, if  I use saxon, I get errors (below).

    I'd like to use saxon because I have other systems which require xslt 2.0 (and these are working fine with OrangeVolt and saxon).

    Many thanks....here's the error...

    Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor Exception in thread "main" java.lang.AssertionError: Unknown value representation
        at net.sf.saxon.value.Value.getIterator(Value.java:206)
        at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:195)
        at net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:83)
        at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:664)
        at net.sf.saxon.expr.ComputedExpression.effectiveBooleanValue(ComputedExpression.java:474)
        at net.sf.saxon.expr.BooleanExpression.effectiveBooleanValue(BooleanExpression.java:58)
        at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:226)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:353)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:89)
        at net.sf.saxon.expr.LetExpression.process(LetExpression.java:138)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:332)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:191)
        at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:216)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:298)
        at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:175)
        at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:139)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:298)
        at net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:431)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:276)
        at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:175)
        at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:139)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:298)
        at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:175)
        at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:139)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:191)
        at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:216)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:188)
        at net.sf.saxon.expr.ExpressionTool.eagerEvaluate(ExpressionTool.java:294)
        at net.sf.saxon.expr.ExpressionTool.lazyEvaluate(ExpressionTool.java:221)
        at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:117)
        at net.sf.saxon.expr.LetExpression.process(LetExpression.java:136)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:332)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:191)
        at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:216)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:296)
        at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:175)
        at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:139)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:155)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:87)
        at net.sf.saxon.expr.LetExpression.process(LetExpression.java:138)
        at net.sf.saxon.instruct.Template.expand(Template.java:100)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:296)
        at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:331)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:289)
        at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:175)
        at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:139)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:229)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:330)
        at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:229)
        at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:229)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:296)
        at net.sf.saxon.Controller.transformDocument(Controller.java:1367)
        at net.sf.saxon.Controller.transform(Controller.java:1195)
        at com.orangevolt.xslt.launcher.XSLTLauncher.main(XSLTLauncher.java:377)

     
    • lars gersmann

      lars gersmann - 2006-06-13

      could you try to transform your document on commandline using saxon ?

      the issue seems to me a saxon/docbook related bug (docbook applies saxon specific java extensions to the transformation).

       
    • Owen Campbell

      Owen Campbell - 2006-06-19

      I got around this by using ant tasks to define the processor for individual projects - thanks anyway

       

Log in to post a comment.