[silva-dev] Publishing custom XML content
eric at infrae.com
Fri Aug 6 13:53:15 CEST 2004
Yuri Smetsers wrote:
> Dear developers,
> Currently I'm doing some research for our next project: creating and/or
> publishing our documents (XML) in SIlva (see attachment for example).
> I guess the best approach is to create our own XMLWidgets, but
> up-to-date documentation is hard to find.
Another way could be to write import (and maybe export) handlers for
your own xml content elements. This would mean you'd have to think up a
translation from your xml to the format xml widgets use, if you'd want
to store your content as Silva Documents. This may or may not be
possible, depending on what sort of stuff is in your content, and
whether you want to have it 100% unchanged in Silva. (If you'd use Silva
only as a way to present the content on the web, and not as a central
storage, having small presentational differences probably wouldn't
matter that much.) Writing your own xml handlers isn't that complicated,
probably less so than adding your own widgets, but sadly, for the
moment, just as lacking in documentation. Have a look through the
silvaxml directory of Silva and SilvaDocument, especially xmlexport.py,
which shows you how Silva xml is handled.
More information about the silva-dev