[docbook-apps] Title page docbook5 ns

2009-02-14 Thread Bruno GUEGAN
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-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Cannot validate a UTF-8 document with mediaobject

2009-02-14 Thread Shlomi Fish
Hi all!

I cannot seem to validate the attached document using:

{{{
xmllint --relaxng http://www.docbook.org/xml/5.0/rng/docbook.rng
hebrew-html-tutorial.xml
}}}

I'm on Mandriva Linux Cooker. When I comment out the mediaobject it
validates. My question is why? What am I doing wrong?

Regards,

-- Shlomi Fish

-- 
--
Shlomi Fish http://www.shlomifish.org/

Electrical Engineering studies. In the Technion. Been there. Done
that. Forgot a lot. Remember too much.
?xml version='1.0' ?


book xmlns=http://docbook.org/ns/docbook; xmlns:xlink=http://www.w3.org/1999/xlink; version=5.0 xml:id=index xml:lang=he
info
titleהמדריך העברי ל-HTML תקני/title
author
personname
firstnameShlomi/firstname
surnameFish/surname
/personname
affiliation
address
emailshlo...@iglu.org.il/email
/address
/affiliation
/author
copyright
year2008/year
holderShlomi Fish/holder
/copyright
legalnotice xml:lang=en
!-- Ci vis pacem --
para
!-- belum. ;-) --
This document was written by Shlomi Fish and is available
under the terms of either the:
/para
orderedlist
listitem
para
link xlink:href=http://creativecommons.org/licenses/publicdomain/;The Public Domain/link,
as defined by the Creative Commons or your local
jurisdication.
/para
/listitem
listitem
para
link xlink:href=http://creativecommons.org/licenses/by/3.0/;The Creative Commons Attribution License (CC-by) version 3.0/link
(or at your option any later version of the same
license.)
/para
/listitem
listitem
para
The 
link
xlink:href=http://www.opensource.org/licenses/mit-license.php;MIT
X11 License/link.
/para
/listitem
/orderedlist
/legalnotice
revhistory
revision
revnumber2780/revnumber
date27 April 2008/date
authorinitialsshlomif/authorinitials
revremark
Started working on this document after forking the template
of an older one.
/revremark
/revision
/revhistory
/info

chapter xml:id=basic-html
info
titleHTML בסיסי/title
/info
section xml:id=more-HTML-tags
info
titleתגי HTML נוספים/title
/info
para
בפרק זה נכיר תגי HTML נוספים ושימושיים.
/para
section xml:id=headings
info
titleכותרות - h1, h2, h3/title
/info

para
וכך זה נראה:
/para

mediaobject
imageobject
imagedata 
fileref=images/h1-h2-example.png format=PNG
/
/imageobject
/mediaobject


para
Foo.
/para

/section
/section

/chapter
/book

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

RE: [docbook-apps] Cannot validate a UTF-8 document with mediaobject

2009-02-14 Thread Mauritz Jeanson
|  -Original Message-
|  From: Shlomi Fish 
|  
|  I cannot seem to validate the attached document using:
|  
|  {{{
|  xmllint --relaxng http://www.docbook.org/xml/5.0/rng/docbook.rng
|  hebrew-html-tutorial.xml
|  }}}
|  
|  I'm on Mandriva Linux Cooker. When I comment out the mediaobject it
|  validates. My question is why? What am I doing wrong?


I don't think you are doing anything wrong. This looks like an xmllint bug.

Both Jing (http://www.thaiopensource.com/relaxng/jing.html) and MSV
(https://msv.dev.java.net/) report that your document is valid.

Mauritz



-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



RE: [docbook-apps] Title page docbook5 ns

2009-02-14 Thread Dick Hamilton
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_gue...@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-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: 
 docbook-apps-h...@lists.oasis-open.org
 
 



-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org