Hi Steve,

Nunez Steve schrieb:
> Following up on my own message, I can think of an
> additional use case for Lenya that does not involve
> navigational elements being added by the foo2xhtml.xsl
> stylesheet: machine readable content.

yes, this is a typical application, and - thanks to
the Cocoon architecture - very easy to implement.

> One of the applications that we'd like to use Lenya
> for is to maintain content that will be read by
> machine using XML-RPC.
> 
> In this use case, the 'live' site will simply be the
> XML files. We will also use parameterized URL access
> to render the pages for humans by use of stylesheet.
> In  this case the stylesheet for the human readable
> version will not contain any navigation widgets
> because the machine readable XML won't have that
> information.
> 
> Any pointers to a simple example of the pipeline,
> without any Lenua elements or processing in it would
> be very helpful.

You'll find plenty of infos about pipeline structures
in the Cocoon documentation.

I'd recommend to use a resource type format for this purpose
(http://lenya.apache.org/docs/2_0_x/reference/resource-types.html#Formats).

Basically, your publication pipeline might look like this:

<map:match pattern="**.xml">
  <map:generate
src="lenya-document:{page-envelope:document-uuid}?format=..."/>
  <map:serialize type="xml"/>
</map:match>

HTH,
-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to