[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: docbook-xsl/Cocoon/chunk.xsl
On Fri, Oct 18, 2002 at 05:03:55AM -0700, Swen Stsop wrote: > > How much modification do you suppose there would be to add navigation? If you could include it you could modify how links to other parts of the book are made. So instead of href="cho2.html" it could be href="doc.html?root.id=ch02#anchor". Something like that. Does that make sense? Possibly, if the Cocoon server can respond to such href syntax. You would need something like that anyway if you have internal links in your document. I'm not sure how hard it would be to add the navigation. The navigational headers and footers come from the chunking stylesheet, but it always writes to a file. I would think you might be better off starting with the chunk stylesheet. It still accepts a rootid parameter to select a subset. But you would have to customize the 'write.chunk' template in html/chunker.xsl so that it writes to standard output instead of using the exsl:document extension element. > Bob Stayton <bobs@caldera.com> wrote: On Thu, Oct 17, 2002 at 09:18:24PM -0700, Swen Stsop wrote: > > > > I believe I understand that using chunk.xsl with cocoon > > doesn't work. This is because it designed to save the > > output to files and now send it to standard out I'm on the > > right track, right?. So is there some stylesheets out > > there that can support chunking for cocoon? I'm guessing > > you pass the xslt processor some parameter to output only > > the section you need, like section=ch02 for example. > > Something like that. Can anyone help. Thanks. > > Yes, use the html/docbook.xsl stylesheet and set the > 'rootid' parameter to the id attribute value of > the element you want to output, like . > It can write to standard output, will include a table > of contents for the chapter, and will even number > the chapter according to its location in the book. > > However, it will lack the navigational header and footer > that chunked HTML files have. > -- > > Bob Stayton 400 Encinal Street > Publications Architect Santa Cruz, CA 95060 > Technical Publications voice: (831) 427-7796 > Caldera International, Inc. fax: (831) 429-1887 > email: bobs@caldera.com > > > --------------------------------- > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos, & more > faith.yahoo.com -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC