#3818 build.xml xslt.doc fails with ant 1.9.2

minor bug
closed-fixed
nobody
None
5
2013-12-23
2013-08-13
Eric Le Lay
No

java -version
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-2-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)

ant -version
Apache Ant(TM) version 1.9.2 compiled on July 24 2013

When I run ant generate-doc-users-guide I get a very long list of errors like this

generate-doc-users-guide:
[xslt.doc] Processing /home/elelay/jedit/jEdit/doc/users-guide/users-guide.xml to /home/elelay/jedit/jEdit/build/doc/users-guide/index.html
[xslt.doc] Loading stylesheet /home/elelay/jedit/jEdit/doc/jedithtml.xsl
[xslt.doc] /home/elelay/jedit/jEdit/build/docbook-xsl/docbook/html/inline.xsl:204:54: Error! java.lang.NoSuchMethodException: For extension function, could not find method com.nwalsh.saxon.UnwrapLinks.unwrapLinks([ExpressionContext,] #RTREEFRAG).
[xslt.doc] Checked both static and instance methods. Cause: java.lang.NoSuchMethodException: For extension function, could not find method com.nwalsh.saxon.UnwrapLinks.unwrapLinks([ExpressionContext,] #RTREEFRAG).
[xslt.doc] Checked both static and instance methods.
[xslt.doc] /home/elelay/jedit/jEdit/build/docbook-xsl/docbook/html/inline.xsl:2

It still creates the html files but the content of <quote> elements is removed.
For instance, in Writing Macros Basics the quote describing beanshell has openquote and closequote but no content inside.

I've separately downloaded ant 1.8.4 and when building with it the error doesn't appear.

Discussion

  • Eric Le Lay

    Eric Le Lay - 2013-08-13

    minimal project showing the issue

     
    Attachments
  • Eric Le Lay

    Eric Le Lay - 2013-08-13

    It seems to be related to the xslt processor picked by ant.
    Apparently, the Saxon implementation is not picked anymore when its jar is added to the classpath.
    I guess it's now appended instead of prepended...

    Specifying explicitely the xslt processor class (<factory name="com.icl.saxon.TransformerFactoryImpl"/>) fixes the build issue for me.

     
  • Eric Le Lay

    Eric Le Lay - 2013-12-23
    • status: open --> closed-fixed
    • Group: --> minor bug
     
  • Eric Le Lay

    Eric Le Lay - 2013-12-23

    patch [patches:#507] applied in r23390

     

    Related

    Patches: #507

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks