[silva-dev] Code-Source as Inline-Element
kitblake at gmail.com
Fri Sep 16 17:20:31 CEST 2005
> Trying to create some advanced linking feature using Code Sources I
> eventually found out that Code Sources can only be used as block
> elements and that they cannot be nested into paragraphs, lists, etc. As
> I wanted these (specialized) links to be inside some text in a paragraph
> or a list this is bad news to me.
> Is it true, that Code Sources can only be used as block elements? If
> yes, does anybody know a workaround?
Yes, it's (unfortunately) true.
> As a feature request, I would suggest that Codes Sources should also be
> usable as inline elements. This might greatly enhance the potential of
> Silva for customized enhancements. For example I am thinking of a
> literature reference Code Source in a Silva Document, that might work
> together with a bibliography entry content type to produce
> bibliographies automatically.
As a workaround you could easily create a Code Source that renders a
p element and includes the reference with any metadata (href, link
title). If you wish I can send you an image captioning Code Source to
serve as an example.
> Or a similar idea is a glossary reference
> Code Source, which automatically creates a link to a glossary entry (or
> glossary entry).
Indeed the ideal solution would be inline Code Sources, but that is
not a simple feature, as it requires changes to the xml schema,
If you do create your Code Sources, please let us know.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Infrae . . . kit blake . . . infrae.com . t +31 10 243 7051
Hoevestraat 10 . 3033 GC Rotterdam . NL . f +31 10 243 7052
More information about the silva-dev