-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2008-02-06 at 15:20 +0100, Thomas Schraitle wrote:
cer@nimrodel:~/lyx> sgml2txt -man testing_manpage.sgml [... Removed errors... ]
I would consider this process as outdated. The preferred way of getting a manpage is to use the XSLT stylesheets thesedays.
I tried that because that is what I found googling. If you know of a document explaining how to create a manpage with LyX, I'd appreciate it.
Try to use this:
$ DB=/usr/share/xml/docbook/stylesheet/nwalsh/current/ $ # Maybe skip the following command: $ xmllint --valid --noout testing_manpage.sgml $ xsltproc $DB/manpages/docbook.xsl testing_manpage.sgml
cer@nimrodel:~/lyx> DB=/usr/share/xml/docbook/stylesheet/nwalsh/current/ cer@nimrodel:~/lyx> xmllint --valid --noout testing_manpage.sgml testing_manpage.sgml:2: parser error : SystemLiteral " or ' expected [ <!ENTITY % output.print.png "IGNORE"> ^ testing_manpage.sgml:2: parser error : SYSTEM or PUBLIC, the URI is missing [ <!ENTITY % output.print.png "IGNORE"> ^ cer@nimrodel:~/lyx> xsltproc $DB/manpages/docbook.xsl testing_manpage.sgml testing_manpage.sgml:2: parser error : SystemLiteral " or ' expected [ <!ENTITY % output.print.png "IGNORE"> ^ testing_manpage.sgml:2: parser error : SYSTEM or PUBLIC, the URI is missing [ <!ENTITY % output.print.png "IGNORE"> ^ unable to parse testing_manpage.sgml
Maybe you have to convert your SGML file into XML first, depends on your file.
Lyx can generate docbook as sgml or xml. But the error is similar :-( cer@nimrodel:~/lyx> xmllint --valid --noout testing_manpage.xml testing_manpage.xml:6: element book: validity error : No declaration for attribute title of element book <book lang="en_US" title="LyX" sectnum="1"> ^ testing_manpage.xml:6: element book: validity error : No declaration for attribute sectnum of element book <book lang="en_US" title="LyX" sectnum="1"> ^ testing_manpage.xml:19: element book: validity error : Element book content does not follow the DTD, expecting ((title , subtitle? , titleabbrev?)? , bookinfo? , (dedication | toc | lot | glossary | bibliography | preface | chapter | reference | part | article | appendix | index | setindex | colophon)*), got (sect1 sect1 sect1 sect1) table file name. </para></listitem></varlistentry></variablelist></sect1></book> ^ cer@nimrodel:~/lyx> xsltproc $DB/manpages/docbook.xsl testing_manpage.xml Erro: no refentry: No refentry elements found in "Title". Title I change the .lyx, retry cer@nimrodel:~/lyx> xsltproc $DB/manpages/docbook.xsl testing_manpage.xml Erro: no refentry: No refentry elements found in "lyx - A Docume lyx - A Document Processor No use. :-( - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHqdjNtTMYHG2NR9URAhzNAJ9XfWN1tVvE1uKtW2SH8Ohd/2mSWQCdHqkI 5JKM8VAj3OfIPxXWRGzkx5c= =y1dy -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org