[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Title page docbook5 ns
Bruno, I think your command line is the problem. The following should make it work: - Add the saxon jar (saxon.jar) to the -cp argument. (saxon65.jar contains extensions, not all of saxon). Depending on your system saxon.jar could be in any number of places. If you're not sure, look in /usr/share/saxon /usr/share/java/saxon, and /usr/saxon. - Identify the class (com.icl.saxon.StyleSheet) after the classpath argument. - The order of the arguments should be the following (after com.icl.saxon.StyleSheet): -o outputfile.xsl \ inputfile.xml \ stylesheet.xsl - titlepage.templates.xsl is the output file from this process. titlepage.xsl (which is in the template directory, not the fo directory) is the stylesheet you should be running. Using your file names, that leaves you with the following command line (change "saxonpath" to the right value for your system). Everything is on one line, of course: java -cp "/saxonpath/saxon.jar:docbook-xsl-ns-1.74.0/extensions/saxon65.jar:/libs /xerces-2_9_0/xercesImpl.jar" com.icl.saxon.StyleSheet -o /tmp/titlepage.templates.xsl docbook-xsl-ns-1.74.0/fo/titlepage.templates.xml docbook-xsl-ns-1.74.0/template/titlepage.xsl This line generates a new titlepage.templates.xsl file in /tmp using titlepage.xsl as the stylesheet and titlepage.templates.xml as the input. That should work. BTW, you may want to check out Bob Stayton's explanation of how the docbook stylesheets handle title pages. You can find it at: http://www.sagehill.net/docbookxsl/HTMLTitlePage.html If you do a lot of DocBook XSL, his book is worth its weight in gold (http://www.sagehill.net/book-description.html). Best Regards, Dick Hamilton Managing Writers: A Real World Guide to Managing Technical Documentation http://xmlpress.net/managingwriters.html > -----Original Message----- > From: Bruno GUEGAN [mailto:bruno_guegan@yahoo.fr] > Sent: Saturday, February 14, 2009 6:23 AM > To: docbook-apps@lists.oasis-open.org > Subject: [docbook-apps] Title page docbook5 ns > > > Hello, > > Y want to get a title page, and i do this : > > java -cp > "docbook-xsl-ns-1.74.0/extensions/saxon65.jar:/libs/xerces-2_9 > _0/xercesImpl.jar" > docbook-xsl-ns-1.74.0/fo/titlepage.templates.xsl -o > /tmp/titlepage.templates.xsl > docbook-xsl-ns-1.74.0/fo/titlepage.templates.xml > > Messages are : > Exception in thread "main" java.lang.NoClassDefFoundError: > docbook-xsl-ns-1.74.0/fo/titlepage/templates/xsl > Caused by: > java.lang.ClassNotFoundException: > .docbook-xsl-ns-1.74.0.fo.titlepage.templates.xsl > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > > And java : > jdk1.6.0_07 > > Can you help me ? > > Best regards, > Bruno > > -- > On ne peut pas faire confiance à un homme qui n'a jamais fait > d'erreurs. > Livre du Samouraï > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: > docbook-apps-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]