OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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: bobs@sco.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]