Re: Publishing custom XML content

Eric Casteleijn <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.