El 02.10.07 a las 08:49, Togan Muftuoglu escribió:
Date: Mon, 7 Oct 2002 08:49:43 +0300 From: Togan Muftuoglu
To: suse-linux-e@suse.com Subject: Re: [SLE] Lyx and docbook have to be manually edited. Using "sgml2html texto.sgml" produces the same bad results.
1) use db2html ( comes with docbook-toys
Perfect! Marvelous! Ie, it works. 8-) Well, almost, it forgot to copy my images to the result directory. I had db2html installed (docbktls-0.60.1-47.rpm), but I did not remember. By the way, the images do not work because when lyx export as sgml it clips the extension of the name: <!ENTITY graph1001 "photosnap"> ]> I edit is to read "photosnap.png" and then the html contains a reference to "photosnap.gif" instead. That's weird... And once I got the image in the pdf, but no more.
jade:/home/cer/lyx/texto.sgml:3:14:E: there is no attribute "LANG" jade:/home/cer/lyx/texto.sgml:3:18:E: element "ARTICLE" undefined jade:/home/cer/lyx/texto.sgml:5:12:E: element "ARTICLEINFO" undefined jade:/home/cer/lyx/texto.sgml:5:19:E: element "TITLE" undefined [etc]
use SGML_CATALOG_FILES hint (look at /etc/profile.d/jade_dsl.sh /etc/profile.d/sp.sh)
Well, with db2html there are no error messages, just some warnings about the toc not allowed there. It's funy, the html contains a TOC, but not the pdf. I suppose the catalogs you mention are links in /usr/share/sgml, pointing to files in /var/lib/sgml, like: /usr/share/sgml/CATALOG.docbook_4 -> ../../../var/lib/sgml/CATALOG.docbk41 I edited the line in /etc/profile.d/sp.sh, that was: # export SGML_CATALOG_FILES=$HOME/sgml/CATALOG:/etc/sgml/CATALOG:/usr/share/sgml/CATALOG export SGML_CATALOG_FILES=$HOME/sgml/CATALOG:/etc/sgml/CATALOG:/usr/share/sgml/ but sgml2htm keeps producing those errors. I have just seen an entry in the sdb about that, but it refers to suse 8.0, I'm not sure it applies.
Note that ftp.gwdg.de/pub/suse/people/ke has some updated packages for docbook those may help toget better results
I'll have a look; I don't know if they will work with suse 7.3, or perhaps I should wait till I update to 8.1, perhaps next month. Well, thank you for your help! At least, I can get the html working. -- Cheers, Carlos Robinson