Using Saxon with the XSLT 1.0 Stylesheets

Bogdan <[email protected]>
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
Hi,
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:onWarning 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" \
     -Djavax.xml.parsers.DocumentBuilderFactory=\
       org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \
     -Djavax.xml.parsers.SAXParserFactory=\
       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.
Thanks,Bogdan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.