1. This post belongs on the User ML (because you are discussing how to use Lenya rather than how to enhance the Lenya project codebase.) 2. You need to specify the Lenya version. Some people know 1.2; others know 2.0. The solution for your request will be very different depending on the branch. 3. In Lenya 1.2, I believe a Cocoon pipeline must be used to discover the doctype of the current document. (This was one of the architectural changes for 1.3.)
Please ask again with more information (e.g. version) on the User ML. solprovider On 3/4/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Maybe there's a simple answer t o this. I'm trying to develope a custom > publication task, and need to handle different doctypes differently. We're > parsing through all the documents in a given pub, and need to get the > doctype of each documents. > > Is there some way, or is there an example in some class (we've been hunting > for days) of accomplishing this, or could you point us in the right > direction. > > Right now it seems like we need an object model to hand to PageEnvelope in > order to get at the doctype, but we can't seem to figure out how to > instantiate a cocoon object model on the fly. > > Any help or hints would be appreciated: like is this done in some lenya code > somewhere that I could follow as an example? > > Thanks, > -doug --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
