[daisy] A problem with query

Paweł Burno Pawel.Burno at eo.pl
Wed Nov 8 09:58:05 CST 2006


Thanx Nick

but my problem is: how to get automatically id's of this included article-documents and then dynamically put these id's into query-include??

I've got a structure of documents as bellow:

generalGroupDocument -- in this document I include a few articleDocuments and faqGroupDocument.
atricleDocuments -- this type of document have field ID.
faqDocument -- a simple faqDocument which have fields faqID and articlesID( for example: 1,3,5,7)
faqGroupDocument -- in this document I want to include faqDocuments only for dynamically generated ID's.


Example:

generalGroupDocument
--articles
----article with ID = 1
----article with ID = 3
----article with ID = 5
--faqGroupDocument
----all faqdocuments which have in field articlesID values 1 or 3 or 5

-- 
Pawel Burno
jabber: pburno at jabber.eo.pl
Pawel.Burno at eo.pl


> One way to do this (which is how we do it - see http://www.bios.net/ 
> daisy/bios/FAQ.html) is to create a new document type for the FAQ  
> articles (e.g. called FAQ item). Its then a matter of including the  
> document type as part of your query in a query-include. You probably  
> also want to create either a specific document-styling or query- 
> styling XSL to make it look nice.

> 
> Nick
> On 03/11/2006, at 6:58 PM, Paweł Burno wrote:

> 
> >/ Hi
/> >/ /
//> >/ //I've got a problem with query. I've got one grouping document which
/> >/ //including a few article-documents (which have a field ID) and I  
/> >/ //want to
/> >/ //include a faq-grouping-document with filtered faq-documents (which  
/> >/ //have
/> >/ //a filed ArticleID) only for those few article-documents.
/> >/ //The quesstion is: How to construct the query to select whose
/> >/ //faq-documents. Is it possible to construct a query like that in  
/> >/ //Daisy??/
> >/
/> >/ //-- 
/> >/ //Pawel Burno
/> >/ //jabber: pburno at jabber.eo.pl <http://lists.cocoondev.org/mailman/listinfo/daisy>
/> >/ //Pawel.Burno at eo.pl <http://lists.cocoondev.org/mailman/listinfo/daisy>
/> >/ /
/
/> >/ //_______________________________________________
/> >/ //daisy community mailing list
/> >/ //Professional Daisy support: http://outerthought.org/site/services/ 
/> >/ //daisy/daisysupport.html
/> >/ //mail to: daisy at lists.cocoondev.org <http://lists.cocoondev.org/mailman/listinfo/daisy>
/> >/ //list information: http://lists.cocoondev.org/mailman/listinfo/daisy/
> >/ /



More information about the daisy mailing list