[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: RE: DOCBOOK-APPS: Newbie trouble with output of 'section'-separat edHTML-files
First, instead of calling the html/docbook.xsl stylesheet, call html/chunk.xsl. There are a few additional parameters which control how things "chunk" (i.e. break out into HTML files). chunk.first.sections (does the first section stay with the parent, or make it's own file? 1=own chunk, 0=with chapter) chunk.section.depth (how many levels deep do sections continue to chunk. use.id.as.filename (the ID of each section becomes the filename of the "chunk") Be sure to use an XSLT processor that supports chunking (e.g. Saxon or XSLTProc). Running Saxon, your command line might look like this: java com.icl.saxon.StyleSheet source_document.xml docbook-xsl\html\chunk.xsl chunk.first.sections="1" chunk.section.depth="5" use.id.as.filename="1" Jeff -----Original Message----- From: Joachim Liedtke [mailto:JLiedtke@NewYorker.de] Sent: Monday, June 10, 2002 7:24 AM To: docbook-apps@lists.oasis-open.org Subject: DOCBOOK-APPS: Newbie trouble with output of 'section'-separated HTML-files Hi, I hope this question isn't to silly, but I haven't come across the answer reading the documentations so far. :-( O.k., I've written an xml-file using 'DocBook'-syntax with the following (simplyfied) structure: <book> <chapter> <sect1>...</sect1> <sect2>...</sect2> <sectn>...</sectn> </chapter> </book> When I transform the file using the 'DocBook xsl-stylesheets for HTML' I get a long/large document. So far so good. Now I would rather like to transform the file into separate HTML-files, each file representing a section (sec1 - sectn). Do I have to write my own xsl-stylesheet or is there allready a possibility to set an attribute or something in my xml-file within the 'sect1'-elements or so, which will lead to the desired success when using 'DocBook xsl 1.50.0' to transform it? As I'm quite new to the whole thing (xml/xslt and DocBook) any hints are highly apreceated. Thanks in advance Joachim
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC