[silva-dev] Publishing custom XML content
Eric Casteleijn
eric at infrae.com
Mon Sep 6 15:09:26 CEST 2004
Yuri Smetsers wrote:
>
> Hi Eric,
>
>>> For a specific contenttype (i.e. SilvaDocument) multiple renderers
>
> (both XSLT and non-XSLT) can be registered. A site-wide (or at least
> Silva Root wide) default renderer for the content type can be set. Also
> each individual content object can be set to override this default and
> render with a specific renderer, by changing a field in the metadata.
> Great. :)
>
> However, our content will most likely be stored outside of Silva. Is it
> - or will it be - possible to import and render such an object into
> Silva, when needed? (Some sort of on-the-fly importing, actually.)
Yes, this is possible too. You can write a Silva extension, that
supports a new content type, and write import handlers for that, or you
could write import handlers that convert your custom xml to a Silva
Document. In that case, you wouldn't have to write any rendering and
editing code, but depending on the complexity and structure of your
custoim xml, the conversion could be lossy. These two options don't
actually have anything to do with the new xslt rendering. That is more
on the output side of things.
eric
More information about the silva-dev
mailing list