[doc] more on docbook stuff

Mike Cochrane mike@graftonhall.co.nz
Mon, 30 Sep 2002 15:05:47 +1200


> ----- Message from eric.rostetter@physics.utexas.edu ---------
> 
> Okay, so little progress on this stuff.  Part of the problem is I don't
> have jade on the machine I develope Horde stuff on.  So, I downloaded the
> hordedoc stuff to a more modern machine that should have all the needed
> software.

I don't havea clue about any of this jade stuff so I went for a pure PHP
solution. I downloaded docbook-xsl-1.55.0.zip and use the script below to
convert to HTML.

It converts the input file and displays it. As there's a bug in xslt_process the
files have to be specified with file://full path to/file.xml. hopefully someone
will fix this eventually. I also have a stylesheet that i use with it.
Stylesheet is here: http://www.graftonhall.co.nz/mikes/Apache-Mysql-Php-Horde/ 
doc.php is this script in action.

<?php 
    // Set paramters for transform
    $parameters = array();
    $parameters['section.autolabel'] = '1';
    $parameters['section.label.includes.component.label'] = '1';
    $parameters['html.stylesheet'] = 'stylesheet.css';
    
    // Allocate a new XSLT processor
    $xh = xslt_create();

    // Process the document
    $input = 'file://t:/Apache-PHP-Horde-Win2K.sgml';
    $xsl = 'file://T:/docbook-xsl-1.55.0/docbook-xsl-1.55.0/html/docbook.xsl';
    $output = 'file://t:/result.html';

    if (xslt_process($xh, $input, $xsl, $output, array(), $parameters)) {
        readfile($output);
    }

    xslt_free($xh);



> 
> I get an error that I don't have dvipdfm, but I note that I do have
> dvipdf instead?  Anyone know if these are the same?
> 
> I'll keep hacking away, but if anyone knows abour dvipdf/dvipdfm (same,
> different, compatible, etc) let me know.  I'm trying to run this (now)
> on a fairly stock RH 7.3 system.
> 
> --
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
> 
> Why get even? Get odd!
> 
> --
> Documentation mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: doc-unsubscribe@lists.horde.org
> 
> ----- End message from eric.rostetter@physics.utexas.edu -----