[daisy] Publishing field values in a daisy book

Bruno Dumon bruno at outerthought.org
Fri Aug 11 07:38:17 CDT 2006


On Thu, 2006-08-10 at 16:40 +0200, vincent lamareille wrote:
> Hi,
> 
> I am trying to publish books from book definition documents created by
> users.
> 
> When the documents referenced by the <d:section> element contain field
> types, those fields values never appear in the published book, neither in
> pdf nor html. Only "SimpleDocumentContent" parts are published.
> 
> Being logged in, I simply go to Tools > Book publishing, then I click on the
> "Publish a book" link, and clik on the continue button when I have selected
> a book definition.
> Probably I am doing something wrong, but I can't find what.

You're not doing something wrong, the fields are simply not displayed in
the books by default. If you want to show them, you need to create a
'document type specific XSLT'.

The idea is the same as for the document-type-specific-XSLTs of the
wiki, though they are somewhat different and need to be put at a
different location. There is little bit of docs on it here:
http://cocoondev.org/daisydocs-1_5/books/g1/221.html
below the header "applyDocumentTypeStyling".

Note that from Daisy 1.5-M2, these custom stylesheets should be put in
the wikidata directory.

Thus basically, make a copy of the book-document-to-html.xsl, name it
<yourdoctype-name>.xsl, customize it as desired, and put it in
<wikidata dir>/books/publicationtypes/document-styling/

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list