[daisy] How to fill META tags ?
Bruno Dumon
bruno at outerthought.org
Wed Mar 19 16:08:17 CET 2008
Hi,
On Wed, 2008-03-19 at 14:31 +0100, Olivier Lange wrote:
> Luca,
>
> Just spotted your message. I have the same requirement and was not
> able to figure out a simple solution with Daisy's current design
> either.
>
> It is not possible for layout.xsl to extract meta-information from
> within the document's fields (or custom fields), as the document
> content gets fetched and included at a later stage of the publishing
> pipeline [1].
>
The rendered document content is indeed inserted after the layout.xsl.
However, you can have access to document fields in the layout.xsl.
For the case of a page showing a document, the input XML provided to the
layout.xsl is created by the documentlayout.xsl. This documentlayout.xsl
has in its input the document XML representation, more specifically the
result of the publisher instruction p:annotatedDocument, see also
documentpage_pubreq.xml. This does not include part content, nor the
complete prepared document stuff with included documents and all, but it
does include the fields.
So if the documentlayout.xsl leaves a copy of the fields in its output,
it can be picked up by the layout.xsl for embedding into meta tags, or
even better leave an <extraHeadContent> element with the things to add
to <head>.
--
Bruno Dumon http://outerthought.org/
Outerthought http://www.daisycms.org/
bruno at outerthought.org http://www.kauriproject.org/
More information about the daisy
mailing list