Next in thread → Next in month →

Re: [docbook-apps] doctype for generated pages

From
Bob Stayton <>
Date
2003-11-07T21:39:16+00:00
ID
Thread
Re: [docbook-apps] doctype for generated pages
On Fri, Nov 07, 2003 at 08:35:05PM +0100, Oliver Fischer wrote:
> Bob Stayton schrieb:
> > You can't use those parameters with docbook.xsl, but
> > you can with onechunk.xsl, which generates one output
> > file for your whole document using the chunking machinery.
> 
> How do docbook.xsl and onechunk.xsl differ?

The main difference is the way the output gets into
a file. docbook.xsl writes to standard output, which
the processor can redirect to a file using an option.
The docbook.xsl stylesheet has no knowledge of the file;
indeed, the output may be going into a pipeline for further
processing in a web server, for example.  And standard
XSL has no way of specifying the output DOCTYPE, which I
think was a strange omission from the standard.

The onechunk.xsl stylesheet uses a processor extension
function to create the file.  The extension function
provides options for specifying the filename, output type,
doctype, etc. within XSL. And onechunk.xsl always writes
to a file.  If you want to write to standard output, you
have to use a trick like specifying the output file as
"/dev/stdout" on a Unix/Linux box.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: 
Next in thread → Next in month →