Nunez Steve schrieb:
> Hello Lenya Users,
>
> According to the documentation found at:
>
> http://lenya.apache.org/docs/2_0_x/reference/resource-types.html#Formats
>
> the presentation of a new resource is modified as
> follows:
>
> Presentation
> To make your resources available as HTTP pages, you
> have to add the appropriate pipelines and XSLT
> stylesheets. In general, there are no restrictions.
>
> If you derive your publication from the default
> publication, the pipelines have to be placed in
> <publication>/doctypes.xmap. The stylesheets are
> located in <publication>/xslt/ and are named
> <resource-type>2xhtml.xsl (e.g., profile2xhtml.xsl).
> The stylesheet is supposed to generate a valid XHTML
> fragment (in the XHTML namespace) with <div id="body">
> as the document element.
>
> However there is no <publication>/doctypes.xmap in the
> default publication of the branch I just checked out
> today.
The documentation was outdated. I updated it:
<quote>
The pipelines have to be placed in $MODULE_HOME/sitemap.xmap. The
stylesheets are typically located in $MODULE_HOME/xslt/ and named
{resource-type}2{format}.xsl (e.g., profile2xhtml.xsl).
In the case of the xhtml format, the stylesheet is supposed to generate
a valid XHTML document (in the XHTML namespace). The output of other
formats depends on the purpose of the respective format.
</quote>
Thanks for reporting!
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]