[daisy] customizing template for particular document type
Marc Portier
mpo at outerthought.org
Tue Feb 5 02:45:32 CST 2008
Wojciech Ciesielski wrote:
> Marc Portier wrote:
>>
>>> What am I doing wrong? :-/
>>>
>>
>>
>> have you checked if the text is available in the xml input allright?
>> (suggestion: use xsl:copy-of select="/" and then view the source)
> No, it's not OK. There is not plain text - I believe it's because that
> @inlined param set to false:
>
>
[...]
>> and specially check if the @inlined is set
> It's not working - there's inlined = false. Where do I change this?
> There's no such field in part/document definition forms... I didn't
> figured it out from this page
> <http://cocoondev.org/daisydocs-2_1/373-cd/194-cd/420-cd.html> you've
> provided - I am trying to display this from within daisy wiki by using
> custom xsl for my document type:
>
Sorry for the confusion, I should of pointed you elsewhere.
Anyway: I recommend you to read up on the publisher component:
http://cocoondev.org/daisydocs-2_1/373-cd/194-cd.html
(and documents below in the navigation)
specially:
http://cocoondev.org/daisydocs-2_1/373-cd/194-cd/418-cd.html
In short, this is what you should do:
1. create your publisher request-set by copying the folder
{DAISY_DATA}/pubreqs/sample to {DAISY_DATA}/pubreqs/myset
(the name you choose for this folder is the name of your pubrequestset!)
2. modify the settings of this set to include the part you need
edit {DAISY_DATA}/pubreqs/myset/default.xml so it reads on the 3rd line
<p:prepareDocument inlineParts="SimpleDocumentContent,YOURTEXTPART"/>
3. modify your siteconf to use this new publisher request
edit {DAISY_WIKIDATA}/sites/{yoursitename}/siteconf.xml
add a line in this xml file that reads like:
<publisherRequestSet>myset</publisherRequestSet>
(nested comes your chosen name of the folder below pubreqs
-marc=
More information about the daisy
mailing list