OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: Using Saxon with the XSLT 1.0 Stylesheets

Quick update: I messed up the Saxon 6.5.5 command by not realizing the spaces after the ='s are causing problems when separating the lines like that. However, now I am getting empty man pages (0 bytes).
On Thursday, December 26, 2019, 09:17:08 PM GMT+2, Bogdan <love4boobies@yahoo.com> wrote:


I'm trying to produce man pages with Saxon. I've used xsltproc successfully in the part on the same DocBook document. I would rather use Saxon 9-HE, if possible. If not, I suppose I can fall back to Saxon 6.5.5. Here's what I've tried with both:

With Saxon 9-HE:

$ java -jar /usr/share/java/Saxon-HE.jar -o:foo.3 -s:bar.xml -xsl:/usr/share/xml/docbook/stylesheet/doocbook-xsl-ns/manpages/docbook.xsl -xi:on
Warning at xsl:stylesheet on line 9 column 31 of utility.xsl:
  Stylesheet module file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/common/utility.xsl
  is included or imported more than once. This is permitted, but may lead to errors or
  unexpected behavior
Warning at char 19 in xsl:variable/@select on line 131 column 65 of html-rtf.xsl:
  SXWN9000: in {address|blockquote|div|}:
    The keyword 'div' in this context means 'child::div'. If this was intended, use
  'child::div' or './div' to avoid this warning.
Error evaluating ($padding = 1 and fn:string-length(...) eq 1) in xsl:if/@test on line 304 column 94 of pi.xsl:
  XTDE1425: Cannot find a 1-argument function named Q{http://exslt.org/dates-and-times}month-in-year()
  at xsl:call-template name="datetime.format" (file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/common/refentry.xsl#411)
  at xsl:call-template name="get.refentry.date" (file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/common/refentry.xsl#159)
  at xsl:call-template name="get.refentry.metadata" (file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/manpages/docbook.xsl#190)
  at xsl:apply-templates (file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/manpages/docbook.xsl#103)
     processing /reference/refentry185
Cannot find a 1-argument function named Q{http://exslt.org/dates-and-times}month-in-year()

With Saxon 6.5.5:

$ java -cp "/usr/share/java/saxon.jar:/usr/share/java/xercesImpl.jar" \
       org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \
       org.apache.xerces.jaxp.SAXParserFactoryImpl \
     com.icl.saxon.StyleSheet \
     -o man/man3/mcl.3 src/docbook/mcl.xml /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/manpages/docbook.xsl
Error: Main method not found in class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl, please define the main method as:
   public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application

Also, if I have to use Saxon 6.5.5, can I use the saxon-xslt utility to make things less verbose? What should I pass to it?

Sorry for the beginner questions.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]