docbook: Openjade pb with "ldp.dsl", but works with "lfs.dsl"


Previous by date: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", Saqib Ali
Next by date: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", David Horton
Previous in thread: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", Saqib Ali
Next in thread: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", David Horton

Subject: Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl"
From: Tabatha Marshall ####@####.####
Date: 10 Nov 2003 21:38:11 -0000
Message-Id: <1068500261.14968.26.camel@mysticchild>

On Mon, 2003-11-10 at 12:28, Guillaume Audirac wrote:
> I try to translate a file from XML to HTML with Openjade and the
> "ldp.dsl" stylesheet.
> It does work with "lfs.dsl" but not with "ldp.dsl" ! In this case, a
> simple text file is generated.
> Does somebody use the ldp.dsl successfully ?

Yes, it WILL work!

> Here are some additional information:
> $ rpm -qa | grep openjade
> libopenjade0-1.3.2-7mdk
> openjade-1.3.2-7mdk

I have openjade-1.3.1-9 (RH), so I know it's not your openjade.

> $ rpm -qa | grep docbook
> docbook-dtd412-xml-1.0-13mdk
> docbook-dtd30-sgml-1.0-1mdk
> docbook-dtd41-sgml-1.0-6mdk
> docbook-style-dsssl-1.77-4mdk
> docbook-utils-pdf-0.6.12-2mdk
> docbook-style-xsl-doc-1.60.1-2mdk
> docbook-website-2.3-2mdk
> docbook-style-xsl-1.60.1-2mdk
> docbook-utils-0.6.12-2mdk
> docbook-dtd31-sgml-1.0-6mdk
> docbook-dtd42-xml-1.0-1mdk
> docbook-style-dsssl-doc-1.77-3mdk

When I grepped my docbook packages, I only had 5, but it looks like what
you have should be more than fine.

> My config in ~/.bash_profile:
> # Catalog path definition for Openjade
> export path_openjade=/usr/share/sgml/openjade-1.3.2
> export path_docbook_dsssl=/usr/share/sgml/docbook/dsssl-stylesheets-1.77
> export path_dtd=/usr/share/sgml/docbook/xml-dtd-4.1.2
> export
> SGML_CATALOG_FILES=$path_openjade/catalog:$path_docbook_dsssl/catalog:$path_dtd/catalog

My paths are defined in /etc/sgml/sgml.conf rather than in my bash
profile.  All I have is pointers in  /etc/sgml that go back to the files
in /usr/share/sgml.  No matter, what you have above is fine.

> My command is:
> $ openjade -t xml -d $path_docbook_dsssl/html/ldp.dsl -V nochunks
> /usr/share/sgml/openjade-1.3.2/pubtext/xml.dcl
> DocBook-OpenJade-SGML-XML-HOWTO.xml > file_nochunks.html

For XML, my command is as follows, all on one line of course:
openjade -t xml -d
/usr/share/sgml/docbook/dsssl-stylesheets/html/ldp.dsl#html
/usr/share/sgml/xml.dcl filetoprocess.xml

Of course, this means that I've put the ldp.dsl and the xml.dcl in the
directories above.  As long as there are no errors, I get a perfect
conversion every time.

It looks like it spit everything out to the screen on you.  Put the
files I mentioned into the appropriate directories (as I mentioned
above) and give my command a try.  I'd like to see if that works
better.  It should plunk all the html right into the current directory.

Now, my version of the command will give chunks, and I had a difficult
time making openjade do no chunks, so I switch to xsltproc for doing no
chunk, using the ldp-html.xsl.  If you have xsltproc installed, you can
type:
xsltproc -o outputfile.html --docbook /usr/share/sgml/ldp-html.xsl
inputfile.xml

The xsl file can be found in CVS at the LDP
(http://cvsview.tldp.org/index.cgi/LDP/builder/xsl/), and as long as you
put the file in the directory you specify in the command, you should get
an html file with the entire doc.

If you absolutely need openjade to do the no chunk, hopefully others
here have some thoughts of their own to share.

Please let us know if it works!

Tabatha


-- 
Tabatha Marshall
Web: www.merlinmonroe.com
Linux Documentation Project Review Coordinator (http://www.tldp.org)
Linux Counter Area Manager US:wa (http://counter.li.org)


Previous by date: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", Saqib Ali
Next by date: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", David Horton
Previous in thread: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", Saqib Ali
Next in thread: 10 Nov 2003 21:38:11 -0000 Re: Openjade pb with "ldp.dsl", but works with "lfs.dsl", David Horton


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.