[silva-dev] Silva supporting Neutron resp. Yulup
eric casteleijn
eric at infrae.com
Tue Oct 10 21:16:09 CEST 2006
Michael Wechner wrote:
> kit BLAKE wrote:
>
>> 2006/10/8, Michael Wechner <michael.wechner at wyona.com>:
>>
>>> Dear All
>>>
>>> I would like to make Silva support Yulup, but am not sure where to get
>>> started.
This is *very* cool!
>>> The first thing I would like to do is provide the introspection link.
>>>
>>> What do I need to patch to make a link like for instance
>>>
>>> <link href="introspection-index.xml" type="application/neutron+xml"
>>> rel="neutron-introspection" />
>>>
>>> available within the delivered (X)HTML?
>>
>>
>> This is easy :-)
>
>
> cool :-) what "file" needs to be modified?
Since the link is dependent on the document, it would probably be best
to present it along with the rendered content. The easiest way to do
that is in the xslt-renderer I guess. You could
editSilva/transform/renderer/normal_view.xslt
to include the link, or define and register a new renderer (pretty easy,
and not much work, there are 3 examples in that directory). It's just
regular xslt so you won't have to tangle with Zope to do it this way.
Note that Silva does not have xslt rendering on by default, so you need
to switch it on in service_renderer_registry (/silva/manage_services).
The other way is to start hacking on the views in SilvaDocument.
Shouldn't be very complicated either, but will be a little more involved...
--
- eric casteleijn
http://infrae.com
More information about the silva-dev
mailing list