[daisy] Parameterizing an include using a field value..
Alan Mortensen
alan at facetinnovations.com
Tue Apr 3 20:36:36 CDT 2007
I've seen this done with daisy content using queries, but I want to
do it with external (or more specifically cocoon:) URLs. The
situation is kind of like this:
DocumentType: Category
Name: Blue
and either through include or through a custom publisher request I'd
like to include:
cocoon://ext/mysearch/Blue
Which returns XML formatted data from a database.
Hrm.. another way to say it is: I'd like to parameterize an external
include based on the data in a document..
What's the best way to do this.. or at least ANY way to do this?
I've been pulling my hair out a bit so far. I don't see a way to do
it in the pub request itself. I don't see how in the document
content to insert a value like the name or field FOO into an
include. I finally resorted to trying to get the document using the
document() method in the document-styling XSL which I know is hacky
(and at this time not working for me) but I don't know what else to do..
The reason I need to do this is that there are a large number of
Category documents, and the users are not exactly tech savvy. So
instead of requiring them to put in the include with the URL
correctly in every category document (it's a bit more complex a URL
than the example) or me having to edit each document I was hoping I
could just have them enter a field and be done with it.
Oh, and if it wasn't clear, I'd like the include to be associated
with the type or the pubrequest somehow, just the parameter should
change per instance document.
Alan
More information about the daisy
mailing list